Plugin Directory

Changeset 3119179


Ignore:
Timestamp:
07/16/2024 12:03:26 PM (21 months ago)
Author:
poweredcache
Message:

Update to version 1.1 from GitHub

Location:
image-optimizer-pro
Files:
12 edited
1 copied

Legend:

Unmodified
Added
Removed
  • image-optimizer-pro/tags/1.1/includes/classes/Admin/Dashboard.php

    r3016602 r3119179  
    2020use const ImageOptimizerPro\Constants\LICENSE_INFO_TRANSIENT;
    2121use const ImageOptimizerPro\Constants\LICENSE_KEY_OPTION;
     22use const ImageOptimizerPro\Constants\MENU_SLUG;
    2223use const ImageOptimizerPro\Constants\SETTING_OPTION;
    2324
     
    6970            add_action( 'admin_menu', [ $this, 'add_menu' ] );
    7071        }
     72
     73        add_action( 'admin_notices', [ $this, 'maybe_display_message' ] );
    7174
    7275        add_action( 'admin_init', [ $this, 'save_settings' ] );
     
    163166                    </tbody>
    164167                </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>
    166178            </form>
    167179        </div>
     
    369381    }
    370382
     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
    371433}
  • image-optimizer-pro/tags/1.1/includes/classes/Optimizer.php

    r3016602 r3119179  
    1111use \WP_Post as WP_Post;
    1212use \WP_Error as WP_Error;
     13use function ImageOptimizerPro\Utils\get_license_key;
    1314use function ImageOptimizerPro\Utils\is_license_active;
    1415use function ImageOptimizerPro\Utils\is_local_site;
     16use const ImageOptimizerPro\Constants\PURGE_ENDPOINT;
    1517
    1618/**
     
    119121        // set preferred image format
    120122        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' ] );
    121126
    122127        // skip photonized urls when image optimizer active
     
    17081713    }
    17091714
     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
    17101779}
  • image-optimizer-pro/tags/1.1/includes/constants.php

    r3016602 r3119179  
    1717
    1818const LICENSE_ENDPOINT = 'https://poweredcache.com/wp-json/paddlepress-api/v1/license';
     19const PURGE_ENDPOINT   = 'https://poweredcache.com/wp-json/image-optimizer/v1/purge';
  • image-optimizer-pro/tags/1.1/languages/image-optimizer-pro.pot

    r3016602 r3119179  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Image Optimizer Pro 1.0.1\n"
     5"Project-Id-Version: Image Optimizer Pro 1.1\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/image-optimizer-pro\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2024-01-02T17:06:41+00:00\n"
     12"POT-Creation-Date: 2024-07-16T12:00:00+00:00\n"
    1313"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"
    1515"X-Domain: image-optimizer-pro\n"
    1616
    1717#. 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
    2223msgid "Image Optimizer Pro"
    2324msgstr ""
    2425
    2526#. Plugin URI of the plugin
     27#: plugin.php
    2628msgid "https://poweredcache.com/image-optimizer-pro/"
    2729msgstr ""
    2830
    2931#. Description of the plugin
     32#: plugin.php
    3033msgid "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."
    3134msgstr ""
    3235
    3336#. Author of the plugin
     37#: plugin.php
    3438msgid "Powered Cache"
    3539msgstr ""
    3640
    3741#. Author URI of the plugin
     42#: plugin.php
    3843msgid "https://poweredcache.com/"
    3944msgstr ""
    4045
    41 #: includes/classes/Admin/Dashboard.php:133
     46#: includes/classes/Admin/Dashboard.php:136
    4247msgid "License Key"
    4348msgstr ""
    4449
    45 #: includes/classes/Admin/Dashboard.php:137
     50#: includes/classes/Admin/Dashboard.php:140
    4651msgid "Deactivate License"
    4752msgstr ""
    4853
    49 #: includes/classes/Admin/Dashboard.php:139
     54#: includes/classes/Admin/Dashboard.php:142
    5055msgid "Activate License"
    5156msgstr ""
    5257
    53 #: includes/classes/Admin/Dashboard.php:151
    54 #: includes/classes/Admin/Dashboard.php:155
     58#: includes/classes/Admin/Dashboard.php:154
     59#: includes/classes/Admin/Dashboard.php:158
    5560msgid "Use WebP over AVIF"
    5661msgstr ""
    5762
    58 #: includes/classes/Admin/Dashboard.php:159
     63#: includes/classes/Admin/Dashboard.php:162
    5964msgid "Activate this option to prioritize the WebP format over AVIF for image optimization."
    6065msgstr ""
    6166
    62 #: includes/classes/Admin/Dashboard.php:165
     67#: includes/classes/Admin/Dashboard.php:169
    6368msgid "Save Changes"
    6469msgstr ""
    6570
    66 #: includes/classes/Admin/Dashboard.php:193
     71#: includes/classes/Admin/Dashboard.php:174
     72msgid "Clear Image Optimizer Cache"
     73msgstr ""
     74
     75#: includes/classes/Admin/Dashboard.php:205
    6776msgid "You cannot use Image Optimizer on localhost. Image Optimization service only works for the public accessible domains."
    6877msgstr ""
    6978
    70 #: includes/classes/Admin/Dashboard.php:213
     79#: includes/classes/Admin/Dashboard.php:225
    7180msgid "You need to activate your license to use Image Optimizer Pro."
    7281msgstr ""
    7382
    74 #: includes/classes/Admin/Dashboard.php:247
     83#: includes/classes/Admin/Dashboard.php:259
    7584msgid "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."
    7685msgstr ""
    7786
    78 #: includes/classes/Admin/Dashboard.php:288
     87#: includes/classes/Admin/Dashboard.php:300
    7988msgid "Settings saved."
    8089msgstr ""
    8190
    82 #: includes/classes/Admin/Dashboard.php:363
     91#: includes/classes/Admin/Dashboard.php:375
    8392msgid "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."
     93msgstr ""
     94
     95#: includes/classes/Admin/Dashboard.php:404
     96msgid "Image optimizer cache purged successfully!"
     97msgstr ""
     98
     99#: includes/classes/Admin/Dashboard.php:408
     100msgid "Could not purge image optimizer cache. Please try again later and ensure your license key is activated!"
     101msgstr ""
     102
     103#: includes/classes/Optimizer.php:1722
     104msgid "You do not have sufficient permissions to perform this action."
     105msgstr ""
     106
     107#: includes/classes/Optimizer.php:1726
     108msgid "Nonce verification failed."
     109msgstr ""
     110
     111#: includes/classes/Optimizer.php:1748
     112msgid "Multisite is not supported for Image Optimizer Purge."
     113msgstr ""
     114
     115#: includes/classes/Optimizer.php:1771
     116msgid "Request failed: "
    84117msgstr ""
    85118
  • image-optimizer-pro/tags/1.1/plugin.php

    r3016602 r3119179  
    44 * Plugin URI:        https://poweredcache.com/image-optimizer-pro/
    55 * 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.1
     6 * Version:           1.1
    77 * Requires at least: 5.7
    88 * Requires PHP:      7.2.5
     
    2424
    2525// Useful global constants.
    26 define( 'IMAGE_OPTIMIZER_PRO_VERSION', '1.0.1' );
     26define( 'IMAGE_OPTIMIZER_PRO_VERSION', '1.1' );
    2727define( 'IMAGE_OPTIMIZER_PRO_PLUGIN_FILE', __FILE__ );
    2828define( 'IMAGE_OPTIMIZER_PRO_URL', plugin_dir_url( __FILE__ ) );
  • image-optimizer-pro/tags/1.1/readme.txt

    r3054396 r3119179  
    33Tags:              image optimizer, optimize images, webp, avif, image compression
    44Requires at least: 5.7
    5 Tested up to:      6.5
     5Tested up to:      6.6
    66Requires PHP:      7.2.5
    7 Stable tag:        1.0.1
     7Stable tag:        1.1
    88License:           GPLv2 or later
    99License URI:       http://www.gnu.org/licenses/gpl-2.0.html
    1010Donate link:       https://poweredcache.com/donate/
    1111
    12 Optimize and serve your images in AVIF or webp format on-the-fly, boosting site performance and decreasing load times with our global network distribution.
     12Optimize and serve your images in AVIF or webp format on-the-fly, boosting site performance and decreasing load times with our network distribution.
    1313
    1414== Description ==
     
    9090== Changelog ==
    9191
     92= 1.1  (2024-07-16) =
     93- [Added] Cache purge feature.
     94- [Updated] Dependencies.
     95- [Tested] Compatibility with WordPress 6.6.
     96
    9297= 1.0.1  (2024-01-02) =
    9398- Added option to prefer WebP format over AVIF.
  • image-optimizer-pro/trunk/includes/classes/Admin/Dashboard.php

    r3016602 r3119179  
    2020use const ImageOptimizerPro\Constants\LICENSE_INFO_TRANSIENT;
    2121use const ImageOptimizerPro\Constants\LICENSE_KEY_OPTION;
     22use const ImageOptimizerPro\Constants\MENU_SLUG;
    2223use const ImageOptimizerPro\Constants\SETTING_OPTION;
    2324
     
    6970            add_action( 'admin_menu', [ $this, 'add_menu' ] );
    7071        }
     72
     73        add_action( 'admin_notices', [ $this, 'maybe_display_message' ] );
    7174
    7275        add_action( 'admin_init', [ $this, 'save_settings' ] );
     
    163166                    </tbody>
    164167                </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>
    166178            </form>
    167179        </div>
     
    369381    }
    370382
     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
    371433}
  • image-optimizer-pro/trunk/includes/classes/Optimizer.php

    r3016602 r3119179  
    1111use \WP_Post as WP_Post;
    1212use \WP_Error as WP_Error;
     13use function ImageOptimizerPro\Utils\get_license_key;
    1314use function ImageOptimizerPro\Utils\is_license_active;
    1415use function ImageOptimizerPro\Utils\is_local_site;
     16use const ImageOptimizerPro\Constants\PURGE_ENDPOINT;
    1517
    1618/**
     
    119121        // set preferred image format
    120122        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' ] );
    121126
    122127        // skip photonized urls when image optimizer active
     
    17081713    }
    17091714
     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
    17101779}
  • image-optimizer-pro/trunk/includes/constants.php

    r3016602 r3119179  
    1717
    1818const LICENSE_ENDPOINT = 'https://poweredcache.com/wp-json/paddlepress-api/v1/license';
     19const PURGE_ENDPOINT   = 'https://poweredcache.com/wp-json/image-optimizer/v1/purge';
  • image-optimizer-pro/trunk/languages/image-optimizer-pro.pot

    r3016602 r3119179  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Image Optimizer Pro 1.0.1\n"
     5"Project-Id-Version: Image Optimizer Pro 1.1\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/image-optimizer-pro\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2024-01-02T17:06:41+00:00\n"
     12"POT-Creation-Date: 2024-07-16T12:00:00+00:00\n"
    1313"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"
    1515"X-Domain: image-optimizer-pro\n"
    1616
    1717#. 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
    2223msgid "Image Optimizer Pro"
    2324msgstr ""
    2425
    2526#. Plugin URI of the plugin
     27#: plugin.php
    2628msgid "https://poweredcache.com/image-optimizer-pro/"
    2729msgstr ""
    2830
    2931#. Description of the plugin
     32#: plugin.php
    3033msgid "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."
    3134msgstr ""
    3235
    3336#. Author of the plugin
     37#: plugin.php
    3438msgid "Powered Cache"
    3539msgstr ""
    3640
    3741#. Author URI of the plugin
     42#: plugin.php
    3843msgid "https://poweredcache.com/"
    3944msgstr ""
    4045
    41 #: includes/classes/Admin/Dashboard.php:133
     46#: includes/classes/Admin/Dashboard.php:136
    4247msgid "License Key"
    4348msgstr ""
    4449
    45 #: includes/classes/Admin/Dashboard.php:137
     50#: includes/classes/Admin/Dashboard.php:140
    4651msgid "Deactivate License"
    4752msgstr ""
    4853
    49 #: includes/classes/Admin/Dashboard.php:139
     54#: includes/classes/Admin/Dashboard.php:142
    5055msgid "Activate License"
    5156msgstr ""
    5257
    53 #: includes/classes/Admin/Dashboard.php:151
    54 #: includes/classes/Admin/Dashboard.php:155
     58#: includes/classes/Admin/Dashboard.php:154
     59#: includes/classes/Admin/Dashboard.php:158
    5560msgid "Use WebP over AVIF"
    5661msgstr ""
    5762
    58 #: includes/classes/Admin/Dashboard.php:159
     63#: includes/classes/Admin/Dashboard.php:162
    5964msgid "Activate this option to prioritize the WebP format over AVIF for image optimization."
    6065msgstr ""
    6166
    62 #: includes/classes/Admin/Dashboard.php:165
     67#: includes/classes/Admin/Dashboard.php:169
    6368msgid "Save Changes"
    6469msgstr ""
    6570
    66 #: includes/classes/Admin/Dashboard.php:193
     71#: includes/classes/Admin/Dashboard.php:174
     72msgid "Clear Image Optimizer Cache"
     73msgstr ""
     74
     75#: includes/classes/Admin/Dashboard.php:205
    6776msgid "You cannot use Image Optimizer on localhost. Image Optimization service only works for the public accessible domains."
    6877msgstr ""
    6978
    70 #: includes/classes/Admin/Dashboard.php:213
     79#: includes/classes/Admin/Dashboard.php:225
    7180msgid "You need to activate your license to use Image Optimizer Pro."
    7281msgstr ""
    7382
    74 #: includes/classes/Admin/Dashboard.php:247
     83#: includes/classes/Admin/Dashboard.php:259
    7584msgid "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."
    7685msgstr ""
    7786
    78 #: includes/classes/Admin/Dashboard.php:288
     87#: includes/classes/Admin/Dashboard.php:300
    7988msgid "Settings saved."
    8089msgstr ""
    8190
    82 #: includes/classes/Admin/Dashboard.php:363
     91#: includes/classes/Admin/Dashboard.php:375
    8392msgid "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."
     93msgstr ""
     94
     95#: includes/classes/Admin/Dashboard.php:404
     96msgid "Image optimizer cache purged successfully!"
     97msgstr ""
     98
     99#: includes/classes/Admin/Dashboard.php:408
     100msgid "Could not purge image optimizer cache. Please try again later and ensure your license key is activated!"
     101msgstr ""
     102
     103#: includes/classes/Optimizer.php:1722
     104msgid "You do not have sufficient permissions to perform this action."
     105msgstr ""
     106
     107#: includes/classes/Optimizer.php:1726
     108msgid "Nonce verification failed."
     109msgstr ""
     110
     111#: includes/classes/Optimizer.php:1748
     112msgid "Multisite is not supported for Image Optimizer Purge."
     113msgstr ""
     114
     115#: includes/classes/Optimizer.php:1771
     116msgid "Request failed: "
    84117msgstr ""
    85118
  • image-optimizer-pro/trunk/plugin.php

    r3016602 r3119179  
    44 * Plugin URI:        https://poweredcache.com/image-optimizer-pro/
    55 * 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.1
     6 * Version:           1.1
    77 * Requires at least: 5.7
    88 * Requires PHP:      7.2.5
     
    2424
    2525// Useful global constants.
    26 define( 'IMAGE_OPTIMIZER_PRO_VERSION', '1.0.1' );
     26define( 'IMAGE_OPTIMIZER_PRO_VERSION', '1.1' );
    2727define( 'IMAGE_OPTIMIZER_PRO_PLUGIN_FILE', __FILE__ );
    2828define( 'IMAGE_OPTIMIZER_PRO_URL', plugin_dir_url( __FILE__ ) );
  • image-optimizer-pro/trunk/readme.txt

    r3054396 r3119179  
    33Tags:              image optimizer, optimize images, webp, avif, image compression
    44Requires at least: 5.7
    5 Tested up to:      6.5
     5Tested up to:      6.6
    66Requires PHP:      7.2.5
    7 Stable tag:        1.0.1
     7Stable tag:        1.1
    88License:           GPLv2 or later
    99License URI:       http://www.gnu.org/licenses/gpl-2.0.html
    1010Donate link:       https://poweredcache.com/donate/
    1111
    12 Optimize and serve your images in AVIF or webp format on-the-fly, boosting site performance and decreasing load times with our global network distribution.
     12Optimize and serve your images in AVIF or webp format on-the-fly, boosting site performance and decreasing load times with our network distribution.
    1313
    1414== Description ==
     
    9090== Changelog ==
    9191
     92= 1.1  (2024-07-16) =
     93- [Added] Cache purge feature.
     94- [Updated] Dependencies.
     95- [Tested] Compatibility with WordPress 6.6.
     96
    9297= 1.0.1  (2024-01-02) =
    9398- Added option to prefer WebP format over AVIF.
Note: See TracChangeset for help on using the changeset viewer.