Changeset 3119179
- Timestamp:
- 07/16/2024 12:03:26 PM (21 months ago)
- Location:
- image-optimizer-pro
- Files:
-
- 12 edited
- 1 copied
-
tags/1.1 (copied) (copied from image-optimizer-pro/trunk)
-
tags/1.1/includes/classes/Admin/Dashboard.php (modified) (4 diffs)
-
tags/1.1/includes/classes/Optimizer.php (modified) (3 diffs)
-
tags/1.1/includes/constants.php (modified) (1 diff)
-
tags/1.1/languages/image-optimizer-pro.pot (modified) (2 diffs)
-
tags/1.1/plugin.php (modified) (2 diffs)
-
tags/1.1/readme.txt (modified) (2 diffs)
-
trunk/includes/classes/Admin/Dashboard.php (modified) (4 diffs)
-
trunk/includes/classes/Optimizer.php (modified) (3 diffs)
-
trunk/includes/constants.php (modified) (1 diff)
-
trunk/languages/image-optimizer-pro.pot (modified) (2 diffs)
-
trunk/plugin.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
image-optimizer-pro/tags/1.1/includes/classes/Admin/Dashboard.php
r3016602 r3119179 20 20 use const ImageOptimizerPro\Constants\LICENSE_INFO_TRANSIENT; 21 21 use const ImageOptimizerPro\Constants\LICENSE_KEY_OPTION; 22 use const ImageOptimizerPro\Constants\MENU_SLUG; 22 23 use const ImageOptimizerPro\Constants\SETTING_OPTION; 23 24 … … 69 70 add_action( 'admin_menu', [ $this, 'add_menu' ] ); 70 71 } 72 73 add_action( 'admin_notices', [ $this, 'maybe_display_message' ] ); 71 74 72 75 add_action( 'admin_init', [ $this, 'save_settings' ] ); … … 163 166 </tbody> 164 167 </table> 165 <?php submit_button( esc_html__( 'Save Changes', 'image-optimizer-pro' ), 'submit primary' ); ?> 168 <p> 169 <?php submit_button( esc_html__( 'Save Changes', 'image-optimizer-pro' ), 'submit primary', 'submit', false ); ?> 170 <?php if ( ! is_multisite() && ! is_local_site() && false !== $license_info && 'valid' === $license_info['license_status'] ) : ?> 171 <a 172 href="<?php echo esc_url( wp_nonce_url( admin_url( 'admin-post.php?action=image_optimizer_pro_cache_purge' ), 'image_optimizer_pro_cache_purge' ) ); ?>" 173 class="button-secondary" id="clear_image_optimizer_pro_cache"> 174 <?php esc_html_e( 'Clear Image Optimizer Cache', 'image-optimizer-pro' ); ?> 175 </a> 176 <?php endif; ?> 177 </p> 166 178 </form> 167 179 </div> … … 369 381 } 370 382 383 /** 384 * Maybe display feedback messages when certain action is taken 385 * 386 * @since 1.1 387 */ 388 public function maybe_display_message() { 389 // phpcs:disable WordPress.Security.NonceVerification.Recommended 390 if ( ! isset( $_GET['iop_action'] ) ) { 391 return; 392 } 393 394 /** 395 * Dont display multiple message when saving the options while having the query_params 396 */ 397 if ( ! empty( $_POST ) ) { 398 return; 399 } 400 401 $screen = get_current_screen(); 402 403 $success_messages = [ 404 'purge_image_optimizer_cache' => esc_html__( 'Image optimizer cache purged successfully!', 'image-optimizer-pro' ), 405 ]; 406 407 $err_messages = [ 408 'purge_image_optimizer_cache_failed' => esc_html__( 'Could not purge image optimizer cache. Please try again later and ensure your license key is activated!', 'image-optimizer-pro' ), 409 ]; 410 411 if ( isset( $success_messages[ $_GET['iop_action'] ] ) ) { 412 if ( MENU_SLUG === $screen->parent_base ) { // display with shared-ui on plugin page 413 add_settings_error( $screen->parent_file, MENU_SLUG, $success_messages[ $_GET['iop_action'] ], 'success' ); // phpcs:ignore 414 415 return; 416 } 417 418 printf( '<div class="notice notice-success is-dismissible"><p>%s</p></div>', $success_messages[ $_GET['iop_action'] ] ); // phpcs:ignore 419 } 420 421 if ( isset( $err_messages[ $_GET['iop_action'] ] ) ) { 422 if ( MENU_SLUG === $screen->parent_base ) { // display with shared-ui on plugin page 423 add_settings_error( $screen->parent_file, MENU_SLUG, $err_messages[ $_GET['iop_action'] ], 'error' ); // phpcs:ignore 424 425 return; 426 } 427 428 printf( '<div class="notice notice-error is-dismissible"><p>%s</p></div>', $err_messages[ $_GET['iop_action'] ] ); // phpcs:ignore 429 } 430 // phpcs:enable WordPress.Security.NonceVerification.Recommended 431 } 432 371 433 } -
image-optimizer-pro/tags/1.1/includes/classes/Optimizer.php
r3016602 r3119179 11 11 use \WP_Post as WP_Post; 12 12 use \WP_Error as WP_Error; 13 use function ImageOptimizerPro\Utils\get_license_key; 13 14 use function ImageOptimizerPro\Utils\is_license_active; 14 15 use function ImageOptimizerPro\Utils\is_local_site; 16 use const ImageOptimizerPro\Constants\PURGE_ENDPOINT; 15 17 16 18 /** … … 119 121 // set preferred image format 120 122 self::$preferred_image_formats = $settings['preferred_format']; 123 124 // purge cache 125 add_action( 'admin_post_image_optimizer_pro_cache_purge', [ $this, 'handle_cache_purge' ] ); 121 126 122 127 // skip photonized urls when image optimizer active … … 1708 1713 } 1709 1714 1715 /** 1716 * Handle cache purge 1717 * 1718 * @return void 1719 */ 1720 public function handle_cache_purge() { 1721 if ( ! current_user_can( 'manage_options' ) ) { 1722 wp_die( esc_html__( 'You do not have sufficient permissions to perform this action.', 'image-optimizer-pro' ) ); 1723 } 1724 1725 if ( ! isset( $_GET['_wpnonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_GET['_wpnonce'] ) ), 'image_optimizer_pro_cache_purge' ) ) { 1726 wp_die( esc_html__( 'Nonce verification failed.', 'image-optimizer-pro' ) ); 1727 } 1728 1729 $response = $this->purge_image_optimizer_cache(); 1730 1731 if ( ! is_wp_error( $response ) && ! empty( $response['success'] ) ) { 1732 $redirect_url = add_query_arg( 'iop_action', 'purge_image_optimizer_cache', wp_get_referer() ); 1733 } else { 1734 $redirect_url = add_query_arg( 'iop_action', 'purge_image_optimizer_cache_failed', wp_get_referer() ); 1735 } 1736 1737 wp_safe_redirect( esc_url_raw( $redirect_url ) ); 1738 exit; 1739 } 1740 1741 /** 1742 * Purge Image Optimizer cache 1743 * 1744 * @return mixed|\WP_Error|null 1745 */ 1746 public function purge_image_optimizer_cache() { 1747 if ( is_multisite() ) { 1748 return new \WP_Error( 'multisite_not_supported', esc_html__( 'Multisite is not supported for Image Optimizer Purge.', 'image-optimizer-pro' ) ); 1749 } 1750 1751 $body = wp_json_encode( 1752 [ 1753 'license_key' => get_license_key(), 1754 'license_url' => home_url(), 1755 ] 1756 ); 1757 1758 $response = wp_remote_post( 1759 PURGE_ENDPOINT, 1760 [ 1761 'headers' => [ 1762 'Content-Type' => 'application/json', 1763 ], 1764 'body' => $body, 1765 ] 1766 ); 1767 1768 if ( is_wp_error( $response ) ) { 1769 $error_message = $response->get_error_message(); 1770 1771 return new \WP_Error( 'request_failed', esc_html__( 'Request failed: ', 'image-optimizer-pro' ) . $error_message ); 1772 } 1773 1774 $response_body = wp_remote_retrieve_body( $response ); 1775 1776 return json_decode( $response_body, true ); 1777 } 1778 1710 1779 } -
image-optimizer-pro/tags/1.1/includes/constants.php
r3016602 r3119179 17 17 18 18 const LICENSE_ENDPOINT = 'https://poweredcache.com/wp-json/paddlepress-api/v1/license'; 19 const PURGE_ENDPOINT = 'https://poweredcache.com/wp-json/image-optimizer/v1/purge'; -
image-optimizer-pro/tags/1.1/languages/image-optimizer-pro.pot
r3016602 r3119179 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Image Optimizer Pro 1. 0.1\n"5 "Project-Id-Version: Image Optimizer Pro 1.1\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/image-optimizer-pro\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2024-0 1-02T17:06:41+00:00\n"12 "POT-Creation-Date: 2024-07-16T12:00:00+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 "X-Generator: WP-CLI 2. 9.0\n"14 "X-Generator: WP-CLI 2.10.0\n" 15 15 "X-Domain: image-optimizer-pro\n" 16 16 17 17 #. Plugin Name of the plugin 18 #: includes/classes/Admin/Dashboard.php:104 19 #: includes/classes/Admin/Dashboard.php:105 20 #: includes/classes/Admin/Dashboard.php:127 21 #: includes/classes/Admin/Dashboard.php:362 18 #: plugin.php 19 #: includes/classes/Admin/Dashboard.php:107 20 #: includes/classes/Admin/Dashboard.php:108 21 #: includes/classes/Admin/Dashboard.php:130 22 #: includes/classes/Admin/Dashboard.php:374 22 23 msgid "Image Optimizer Pro" 23 24 msgstr "" 24 25 25 26 #. Plugin URI of the plugin 27 #: plugin.php 26 28 msgid "https://poweredcache.com/image-optimizer-pro/" 27 29 msgstr "" 28 30 29 31 #. Description of the plugin 32 #: plugin.php 30 33 msgid "On-the-fly image optimization for WordPress. It automatically converts and serves images in AVIF or webp format where the browser supports, ensuring faster load times and enhanced user experience." 31 34 msgstr "" 32 35 33 36 #. Author of the plugin 37 #: plugin.php 34 38 msgid "Powered Cache" 35 39 msgstr "" 36 40 37 41 #. Author URI of the plugin 42 #: plugin.php 38 43 msgid "https://poweredcache.com/" 39 44 msgstr "" 40 45 41 #: includes/classes/Admin/Dashboard.php:13 346 #: includes/classes/Admin/Dashboard.php:136 42 47 msgid "License Key" 43 48 msgstr "" 44 49 45 #: includes/classes/Admin/Dashboard.php:1 3750 #: includes/classes/Admin/Dashboard.php:140 46 51 msgid "Deactivate License" 47 52 msgstr "" 48 53 49 #: includes/classes/Admin/Dashboard.php:1 3954 #: includes/classes/Admin/Dashboard.php:142 50 55 msgid "Activate License" 51 56 msgstr "" 52 57 53 #: includes/classes/Admin/Dashboard.php:15 154 #: includes/classes/Admin/Dashboard.php:15 558 #: includes/classes/Admin/Dashboard.php:154 59 #: includes/classes/Admin/Dashboard.php:158 55 60 msgid "Use WebP over AVIF" 56 61 msgstr "" 57 62 58 #: includes/classes/Admin/Dashboard.php:1 5963 #: includes/classes/Admin/Dashboard.php:162 59 64 msgid "Activate this option to prioritize the WebP format over AVIF for image optimization." 60 65 msgstr "" 61 66 62 #: includes/classes/Admin/Dashboard.php:16 567 #: includes/classes/Admin/Dashboard.php:169 63 68 msgid "Save Changes" 64 69 msgstr "" 65 70 66 #: includes/classes/Admin/Dashboard.php:193 71 #: includes/classes/Admin/Dashboard.php:174 72 msgid "Clear Image Optimizer Cache" 73 msgstr "" 74 75 #: includes/classes/Admin/Dashboard.php:205 67 76 msgid "You cannot use Image Optimizer on localhost. Image Optimization service only works for the public accessible domains." 68 77 msgstr "" 69 78 70 #: includes/classes/Admin/Dashboard.php:2 1379 #: includes/classes/Admin/Dashboard.php:225 71 80 msgid "You need to activate your license to use Image Optimizer Pro." 72 81 msgstr "" 73 82 74 #: includes/classes/Admin/Dashboard.php:2 4783 #: includes/classes/Admin/Dashboard.php:259 75 84 msgid "Image Optimizer is already actived on Powered Cache Premium. You can mange it under the settings: <code>Powered Cache > Media Optimization > Image Optimization</code>. You can safely deactivate the Image Optimizer PRO plugin." 76 85 msgstr "" 77 86 78 #: includes/classes/Admin/Dashboard.php: 28887 #: includes/classes/Admin/Dashboard.php:300 79 88 msgid "Settings saved." 80 89 msgstr "" 81 90 82 #: includes/classes/Admin/Dashboard.php:3 6391 #: includes/classes/Admin/Dashboard.php:375 83 92 msgid "We collect information about visitors who use our image optimization service, similar to what is typically recorded in standard web server access logs. Specifically, when visitors access images, we record data such as IP addresses, user agents (which identify the browser or tool used to access the image), referrer URLs (indicating the source webpage from which the image was requested), and the Site URL (the address of the webpage where the image is displayed). This type of data collection is a standard practice for monitoring and enhancing web services." 93 msgstr "" 94 95 #: includes/classes/Admin/Dashboard.php:404 96 msgid "Image optimizer cache purged successfully!" 97 msgstr "" 98 99 #: includes/classes/Admin/Dashboard.php:408 100 msgid "Could not purge image optimizer cache. Please try again later and ensure your license key is activated!" 101 msgstr "" 102 103 #: includes/classes/Optimizer.php:1722 104 msgid "You do not have sufficient permissions to perform this action." 105 msgstr "" 106 107 #: includes/classes/Optimizer.php:1726 108 msgid "Nonce verification failed." 109 msgstr "" 110 111 #: includes/classes/Optimizer.php:1748 112 msgid "Multisite is not supported for Image Optimizer Purge." 113 msgstr "" 114 115 #: includes/classes/Optimizer.php:1771 116 msgid "Request failed: " 84 117 msgstr "" 85 118 -
image-optimizer-pro/tags/1.1/plugin.php
r3016602 r3119179 4 4 * Plugin URI: https://poweredcache.com/image-optimizer-pro/ 5 5 * Description: On-the-fly image optimization for WordPress. It automatically converts and serves images in AVIF or webp format where the browser supports, ensuring faster load times and enhanced user experience. 6 * Version: 1. 0.16 * Version: 1.1 7 7 * Requires at least: 5.7 8 8 * Requires PHP: 7.2.5 … … 24 24 25 25 // Useful global constants. 26 define( 'IMAGE_OPTIMIZER_PRO_VERSION', '1. 0.1' );26 define( 'IMAGE_OPTIMIZER_PRO_VERSION', '1.1' ); 27 27 define( 'IMAGE_OPTIMIZER_PRO_PLUGIN_FILE', __FILE__ ); 28 28 define( 'IMAGE_OPTIMIZER_PRO_URL', plugin_dir_url( __FILE__ ) ); -
image-optimizer-pro/tags/1.1/readme.txt
r3054396 r3119179 3 3 Tags: image optimizer, optimize images, webp, avif, image compression 4 4 Requires at least: 5.7 5 Tested up to: 6. 55 Tested up to: 6.6 6 6 Requires PHP: 7.2.5 7 Stable tag: 1. 0.17 Stable tag: 1.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 Donate link: https://poweredcache.com/donate/ 11 11 12 Optimize and serve your images in AVIF or webp format on-the-fly, boosting site performance and decreasing load times with our globalnetwork distribution.12 Optimize and serve your images in AVIF or webp format on-the-fly, boosting site performance and decreasing load times with our network distribution. 13 13 14 14 == Description == … … 90 90 == Changelog == 91 91 92 = 1.1 (2024-07-16) = 93 - [Added] Cache purge feature. 94 - [Updated] Dependencies. 95 - [Tested] Compatibility with WordPress 6.6. 96 92 97 = 1.0.1 (2024-01-02) = 93 98 - Added option to prefer WebP format over AVIF. -
image-optimizer-pro/trunk/includes/classes/Admin/Dashboard.php
r3016602 r3119179 20 20 use const ImageOptimizerPro\Constants\LICENSE_INFO_TRANSIENT; 21 21 use const ImageOptimizerPro\Constants\LICENSE_KEY_OPTION; 22 use const ImageOptimizerPro\Constants\MENU_SLUG; 22 23 use const ImageOptimizerPro\Constants\SETTING_OPTION; 23 24 … … 69 70 add_action( 'admin_menu', [ $this, 'add_menu' ] ); 70 71 } 72 73 add_action( 'admin_notices', [ $this, 'maybe_display_message' ] ); 71 74 72 75 add_action( 'admin_init', [ $this, 'save_settings' ] ); … … 163 166 </tbody> 164 167 </table> 165 <?php submit_button( esc_html__( 'Save Changes', 'image-optimizer-pro' ), 'submit primary' ); ?> 168 <p> 169 <?php submit_button( esc_html__( 'Save Changes', 'image-optimizer-pro' ), 'submit primary', 'submit', false ); ?> 170 <?php if ( ! is_multisite() && ! is_local_site() && false !== $license_info && 'valid' === $license_info['license_status'] ) : ?> 171 <a 172 href="<?php echo esc_url( wp_nonce_url( admin_url( 'admin-post.php?action=image_optimizer_pro_cache_purge' ), 'image_optimizer_pro_cache_purge' ) ); ?>" 173 class="button-secondary" id="clear_image_optimizer_pro_cache"> 174 <?php esc_html_e( 'Clear Image Optimizer Cache', 'image-optimizer-pro' ); ?> 175 </a> 176 <?php endif; ?> 177 </p> 166 178 </form> 167 179 </div> … … 369 381 } 370 382 383 /** 384 * Maybe display feedback messages when certain action is taken 385 * 386 * @since 1.1 387 */ 388 public function maybe_display_message() { 389 // phpcs:disable WordPress.Security.NonceVerification.Recommended 390 if ( ! isset( $_GET['iop_action'] ) ) { 391 return; 392 } 393 394 /** 395 * Dont display multiple message when saving the options while having the query_params 396 */ 397 if ( ! empty( $_POST ) ) { 398 return; 399 } 400 401 $screen = get_current_screen(); 402 403 $success_messages = [ 404 'purge_image_optimizer_cache' => esc_html__( 'Image optimizer cache purged successfully!', 'image-optimizer-pro' ), 405 ]; 406 407 $err_messages = [ 408 'purge_image_optimizer_cache_failed' => esc_html__( 'Could not purge image optimizer cache. Please try again later and ensure your license key is activated!', 'image-optimizer-pro' ), 409 ]; 410 411 if ( isset( $success_messages[ $_GET['iop_action'] ] ) ) { 412 if ( MENU_SLUG === $screen->parent_base ) { // display with shared-ui on plugin page 413 add_settings_error( $screen->parent_file, MENU_SLUG, $success_messages[ $_GET['iop_action'] ], 'success' ); // phpcs:ignore 414 415 return; 416 } 417 418 printf( '<div class="notice notice-success is-dismissible"><p>%s</p></div>', $success_messages[ $_GET['iop_action'] ] ); // phpcs:ignore 419 } 420 421 if ( isset( $err_messages[ $_GET['iop_action'] ] ) ) { 422 if ( MENU_SLUG === $screen->parent_base ) { // display with shared-ui on plugin page 423 add_settings_error( $screen->parent_file, MENU_SLUG, $err_messages[ $_GET['iop_action'] ], 'error' ); // phpcs:ignore 424 425 return; 426 } 427 428 printf( '<div class="notice notice-error is-dismissible"><p>%s</p></div>', $err_messages[ $_GET['iop_action'] ] ); // phpcs:ignore 429 } 430 // phpcs:enable WordPress.Security.NonceVerification.Recommended 431 } 432 371 433 } -
image-optimizer-pro/trunk/includes/classes/Optimizer.php
r3016602 r3119179 11 11 use \WP_Post as WP_Post; 12 12 use \WP_Error as WP_Error; 13 use function ImageOptimizerPro\Utils\get_license_key; 13 14 use function ImageOptimizerPro\Utils\is_license_active; 14 15 use function ImageOptimizerPro\Utils\is_local_site; 16 use const ImageOptimizerPro\Constants\PURGE_ENDPOINT; 15 17 16 18 /** … … 119 121 // set preferred image format 120 122 self::$preferred_image_formats = $settings['preferred_format']; 123 124 // purge cache 125 add_action( 'admin_post_image_optimizer_pro_cache_purge', [ $this, 'handle_cache_purge' ] ); 121 126 122 127 // skip photonized urls when image optimizer active … … 1708 1713 } 1709 1714 1715 /** 1716 * Handle cache purge 1717 * 1718 * @return void 1719 */ 1720 public function handle_cache_purge() { 1721 if ( ! current_user_can( 'manage_options' ) ) { 1722 wp_die( esc_html__( 'You do not have sufficient permissions to perform this action.', 'image-optimizer-pro' ) ); 1723 } 1724 1725 if ( ! isset( $_GET['_wpnonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_GET['_wpnonce'] ) ), 'image_optimizer_pro_cache_purge' ) ) { 1726 wp_die( esc_html__( 'Nonce verification failed.', 'image-optimizer-pro' ) ); 1727 } 1728 1729 $response = $this->purge_image_optimizer_cache(); 1730 1731 if ( ! is_wp_error( $response ) && ! empty( $response['success'] ) ) { 1732 $redirect_url = add_query_arg( 'iop_action', 'purge_image_optimizer_cache', wp_get_referer() ); 1733 } else { 1734 $redirect_url = add_query_arg( 'iop_action', 'purge_image_optimizer_cache_failed', wp_get_referer() ); 1735 } 1736 1737 wp_safe_redirect( esc_url_raw( $redirect_url ) ); 1738 exit; 1739 } 1740 1741 /** 1742 * Purge Image Optimizer cache 1743 * 1744 * @return mixed|\WP_Error|null 1745 */ 1746 public function purge_image_optimizer_cache() { 1747 if ( is_multisite() ) { 1748 return new \WP_Error( 'multisite_not_supported', esc_html__( 'Multisite is not supported for Image Optimizer Purge.', 'image-optimizer-pro' ) ); 1749 } 1750 1751 $body = wp_json_encode( 1752 [ 1753 'license_key' => get_license_key(), 1754 'license_url' => home_url(), 1755 ] 1756 ); 1757 1758 $response = wp_remote_post( 1759 PURGE_ENDPOINT, 1760 [ 1761 'headers' => [ 1762 'Content-Type' => 'application/json', 1763 ], 1764 'body' => $body, 1765 ] 1766 ); 1767 1768 if ( is_wp_error( $response ) ) { 1769 $error_message = $response->get_error_message(); 1770 1771 return new \WP_Error( 'request_failed', esc_html__( 'Request failed: ', 'image-optimizer-pro' ) . $error_message ); 1772 } 1773 1774 $response_body = wp_remote_retrieve_body( $response ); 1775 1776 return json_decode( $response_body, true ); 1777 } 1778 1710 1779 } -
image-optimizer-pro/trunk/includes/constants.php
r3016602 r3119179 17 17 18 18 const LICENSE_ENDPOINT = 'https://poweredcache.com/wp-json/paddlepress-api/v1/license'; 19 const PURGE_ENDPOINT = 'https://poweredcache.com/wp-json/image-optimizer/v1/purge'; -
image-optimizer-pro/trunk/languages/image-optimizer-pro.pot
r3016602 r3119179 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Image Optimizer Pro 1. 0.1\n"5 "Project-Id-Version: Image Optimizer Pro 1.1\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/image-optimizer-pro\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2024-0 1-02T17:06:41+00:00\n"12 "POT-Creation-Date: 2024-07-16T12:00:00+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 "X-Generator: WP-CLI 2. 9.0\n"14 "X-Generator: WP-CLI 2.10.0\n" 15 15 "X-Domain: image-optimizer-pro\n" 16 16 17 17 #. Plugin Name of the plugin 18 #: includes/classes/Admin/Dashboard.php:104 19 #: includes/classes/Admin/Dashboard.php:105 20 #: includes/classes/Admin/Dashboard.php:127 21 #: includes/classes/Admin/Dashboard.php:362 18 #: plugin.php 19 #: includes/classes/Admin/Dashboard.php:107 20 #: includes/classes/Admin/Dashboard.php:108 21 #: includes/classes/Admin/Dashboard.php:130 22 #: includes/classes/Admin/Dashboard.php:374 22 23 msgid "Image Optimizer Pro" 23 24 msgstr "" 24 25 25 26 #. Plugin URI of the plugin 27 #: plugin.php 26 28 msgid "https://poweredcache.com/image-optimizer-pro/" 27 29 msgstr "" 28 30 29 31 #. Description of the plugin 32 #: plugin.php 30 33 msgid "On-the-fly image optimization for WordPress. It automatically converts and serves images in AVIF or webp format where the browser supports, ensuring faster load times and enhanced user experience." 31 34 msgstr "" 32 35 33 36 #. Author of the plugin 37 #: plugin.php 34 38 msgid "Powered Cache" 35 39 msgstr "" 36 40 37 41 #. Author URI of the plugin 42 #: plugin.php 38 43 msgid "https://poweredcache.com/" 39 44 msgstr "" 40 45 41 #: includes/classes/Admin/Dashboard.php:13 346 #: includes/classes/Admin/Dashboard.php:136 42 47 msgid "License Key" 43 48 msgstr "" 44 49 45 #: includes/classes/Admin/Dashboard.php:1 3750 #: includes/classes/Admin/Dashboard.php:140 46 51 msgid "Deactivate License" 47 52 msgstr "" 48 53 49 #: includes/classes/Admin/Dashboard.php:1 3954 #: includes/classes/Admin/Dashboard.php:142 50 55 msgid "Activate License" 51 56 msgstr "" 52 57 53 #: includes/classes/Admin/Dashboard.php:15 154 #: includes/classes/Admin/Dashboard.php:15 558 #: includes/classes/Admin/Dashboard.php:154 59 #: includes/classes/Admin/Dashboard.php:158 55 60 msgid "Use WebP over AVIF" 56 61 msgstr "" 57 62 58 #: includes/classes/Admin/Dashboard.php:1 5963 #: includes/classes/Admin/Dashboard.php:162 59 64 msgid "Activate this option to prioritize the WebP format over AVIF for image optimization." 60 65 msgstr "" 61 66 62 #: includes/classes/Admin/Dashboard.php:16 567 #: includes/classes/Admin/Dashboard.php:169 63 68 msgid "Save Changes" 64 69 msgstr "" 65 70 66 #: includes/classes/Admin/Dashboard.php:193 71 #: includes/classes/Admin/Dashboard.php:174 72 msgid "Clear Image Optimizer Cache" 73 msgstr "" 74 75 #: includes/classes/Admin/Dashboard.php:205 67 76 msgid "You cannot use Image Optimizer on localhost. Image Optimization service only works for the public accessible domains." 68 77 msgstr "" 69 78 70 #: includes/classes/Admin/Dashboard.php:2 1379 #: includes/classes/Admin/Dashboard.php:225 71 80 msgid "You need to activate your license to use Image Optimizer Pro." 72 81 msgstr "" 73 82 74 #: includes/classes/Admin/Dashboard.php:2 4783 #: includes/classes/Admin/Dashboard.php:259 75 84 msgid "Image Optimizer is already actived on Powered Cache Premium. You can mange it under the settings: <code>Powered Cache > Media Optimization > Image Optimization</code>. You can safely deactivate the Image Optimizer PRO plugin." 76 85 msgstr "" 77 86 78 #: includes/classes/Admin/Dashboard.php: 28887 #: includes/classes/Admin/Dashboard.php:300 79 88 msgid "Settings saved." 80 89 msgstr "" 81 90 82 #: includes/classes/Admin/Dashboard.php:3 6391 #: includes/classes/Admin/Dashboard.php:375 83 92 msgid "We collect information about visitors who use our image optimization service, similar to what is typically recorded in standard web server access logs. Specifically, when visitors access images, we record data such as IP addresses, user agents (which identify the browser or tool used to access the image), referrer URLs (indicating the source webpage from which the image was requested), and the Site URL (the address of the webpage where the image is displayed). This type of data collection is a standard practice for monitoring and enhancing web services." 93 msgstr "" 94 95 #: includes/classes/Admin/Dashboard.php:404 96 msgid "Image optimizer cache purged successfully!" 97 msgstr "" 98 99 #: includes/classes/Admin/Dashboard.php:408 100 msgid "Could not purge image optimizer cache. Please try again later and ensure your license key is activated!" 101 msgstr "" 102 103 #: includes/classes/Optimizer.php:1722 104 msgid "You do not have sufficient permissions to perform this action." 105 msgstr "" 106 107 #: includes/classes/Optimizer.php:1726 108 msgid "Nonce verification failed." 109 msgstr "" 110 111 #: includes/classes/Optimizer.php:1748 112 msgid "Multisite is not supported for Image Optimizer Purge." 113 msgstr "" 114 115 #: includes/classes/Optimizer.php:1771 116 msgid "Request failed: " 84 117 msgstr "" 85 118 -
image-optimizer-pro/trunk/plugin.php
r3016602 r3119179 4 4 * Plugin URI: https://poweredcache.com/image-optimizer-pro/ 5 5 * Description: On-the-fly image optimization for WordPress. It automatically converts and serves images in AVIF or webp format where the browser supports, ensuring faster load times and enhanced user experience. 6 * Version: 1. 0.16 * Version: 1.1 7 7 * Requires at least: 5.7 8 8 * Requires PHP: 7.2.5 … … 24 24 25 25 // Useful global constants. 26 define( 'IMAGE_OPTIMIZER_PRO_VERSION', '1. 0.1' );26 define( 'IMAGE_OPTIMIZER_PRO_VERSION', '1.1' ); 27 27 define( 'IMAGE_OPTIMIZER_PRO_PLUGIN_FILE', __FILE__ ); 28 28 define( 'IMAGE_OPTIMIZER_PRO_URL', plugin_dir_url( __FILE__ ) ); -
image-optimizer-pro/trunk/readme.txt
r3054396 r3119179 3 3 Tags: image optimizer, optimize images, webp, avif, image compression 4 4 Requires at least: 5.7 5 Tested up to: 6. 55 Tested up to: 6.6 6 6 Requires PHP: 7.2.5 7 Stable tag: 1. 0.17 Stable tag: 1.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 Donate link: https://poweredcache.com/donate/ 11 11 12 Optimize and serve your images in AVIF or webp format on-the-fly, boosting site performance and decreasing load times with our globalnetwork distribution.12 Optimize and serve your images in AVIF or webp format on-the-fly, boosting site performance and decreasing load times with our network distribution. 13 13 14 14 == Description == … … 90 90 == Changelog == 91 91 92 = 1.1 (2024-07-16) = 93 - [Added] Cache purge feature. 94 - [Updated] Dependencies. 95 - [Tested] Compatibility with WordPress 6.6. 96 92 97 = 1.0.1 (2024-01-02) = 93 98 - Added option to prefer WebP format over AVIF.
Note: See TracChangeset
for help on using the changeset viewer.