Plugin Directory

Changeset 3035873

Timestamp:
02/14/2024 07:54:04 PM (6 months ago)
Author:
nosilver4u
Message:

tagging and releasing 3.6.0

Location:
easy-image-optimizer
Files:
16 edited
1 copied

Legend:

Unmodified
Added
Removed
  • easy-image-optimizer/tags/3.6.0/changelog.txt

    r3017573 r3035873  
     1
     2
     3
     4
     5
     6
     7
    18= 3.5.5 =
    29*Release Date - January 4, 2024*
  • easy-image-optimizer/tags/3.6.0/classes/class-base.php

    r3017573 r3035873  
    689689        }
    690690        if ( 'ewww_image_optimizer_ll_all_things' === $option_name && \defined( $constant_name ) ) {
     691
     692
     693
    691694            return \sanitize_text_field( \constant( $constant_name ) );
    692695        }
     
    11991202
    12001203    /**
     1204
     1205
     1206
     1207
     1208
     1209
     1210
     1211
     1212
     1213
     1214
     1215
     1216
     1217
     1218
    12011219     * Set an option: use 'site' setting if plugin is network activated, otherwise use 'blog' setting.
    12021220     *
     
    12201238        }
    12211239        return $success;
     1240
     1241
     1242
     1243
     1244
     1245
     1246
     1247
     1248
     1249
     1250
     1251
     1252
     1253
     1254
     1255
     1256
     1257
     1258
     1259
     1260
     1261
    12221262    }
    12231263
     
    13111351                $this->debug_message( "found $allowed_url, replaced with $this->upload_url to get $local_url" );
    13121352                $path = $this->url_to_path_exists( $local_url );
     1353
     1354
     1355
     1356
     1357
     1358
    13131359                if ( $path ) {
    13141360                    return $path;
     
    15401586        // This is used by the WebP parsers, and by the Lazy Load via get_image_dimensions_by_url().
    15411587        $this->upload_url = \trailingslashit( ! empty( $upload_dir['baseurl'] ) ? $upload_dir['baseurl'] : \content_url( 'uploads' ) );
     1588
     1589
     1590
     1591
     1592
     1593
     1594
     1595
     1596
    15421597
    15431598        // But this is used by Easy IO, so it should be derived from the above logic instead, which already matches the site/home URLs against the upload URL.
  • easy-image-optimizer/tags/3.6.0/classes/class-exactdn.php

    r3002888 r3035873  
    24072407                    $intermediate_url   = \str_replace( $image_url_basename, $image_meta['sizes'][ $size ]['file'], $image_url );
    24082408
    2409                     if ( empty( $image_meta['width'] ) || empty( $image_meta['height'] ) ) {
     2409                    if ( empty( $image_meta['['height'] ) ) {
    24102410                        list( $filename_width, $filename_height ) = $this->get_dimensions_from_filename( $intermediate_url );
    2411                     }
    2412                     $filename_width  = ! empty( $image_meta['width'] ) ? $image_meta['width'] : $filename_width;
    2413                     $filename_height = ! empty( $image_meta['height'] ) ? $image_meta['height'] : $filename_height;
     2411                    } else {
     2412                        $filename_width  = $image_meta['sizes'][ $size ]['width'];
     2413                        $filename_height = $image_meta['sizes'][ $size ]['height'];
     2414                    }
    24142415                    if ( $filename_width && $filename_height && $image_args['width'] === $filename_width && $image_args['height'] === $filename_height ) {
    24152416                        $this->debug_message( "changing $image_url to $intermediate_url" );
  • easy-image-optimizer/tags/3.6.0/classes/class-hs-beacon.php

    r2963296 r3035873  
    3333     */
    3434    public function check_for_optin() {
     35
     36
     37
     38
     39
    3540        $this->debug_message( '<b>' . __METHOD__ . '()</b>' );
    3641        $this->set_option( $this->prefix . 'enable_help', 1 );
     
    4449     */
    4550    public function check_for_optout() {
     51
     52
     53
     54
     55
    4656        $this->debug_message( '<b>' . __METHOD__ . '()</b>' );
    4757        \delete_option( $this->prefix . 'enable_help' );
  • easy-image-optimizer/tags/3.6.0/classes/class-plugin.php

    r2969931 r3035873  
    167167            $easyio_ll_exclude = empty( $_POST['easyio_ll_exclude'] ) ? '' : sanitize_textarea_field( wp_unslash( $_POST['easyio_ll_exclude'] ) );
    168168            \update_site_option( 'easyio_ll_exclude', $this->exclude_paths_sanitize( $easyio_ll_exclude ) );
     169
     170
    169171            $easyio_allow_multisite_override = empty( $_POST['easyio_allow_multisite_override'] ) ? false : true;
    170172            \update_site_option( 'easyio_allow_multisite_override', $easyio_allow_multisite_override );
     
    181183
    182184    /**
    183      * Register all our options and santiation functions.
     185     * Register all our options and sanation functions.
    184186     */
    185187    public function register_settings() {
     
    195197        \register_setting( 'easyio_options', 'easyio_use_lqip', 'boolval' );
    196198        \register_setting( 'easyio_options', 'easyio_ll_exclude', array( $this, 'exclude_paths_sanitize' ) );
     199
    197200    }
    198201
     
    218221        \add_option( 'easyio_ll_autoscale', true );
    219222        \add_option( 'easyio_ll_exclude', '' );
     223
    220224
    221225        // Set network defaults.
  • easy-image-optimizer/tags/3.6.0/easy-image-optimizer.php

    r3017573 r3035873  
    1414Description: Easily speed up your website to better connect with your visitors. Properly compress and size/scale images. Includes lazy load and WebP auto-convert.
    1515Author: Exactly WWW
    16 Version: 3.5.5
     16Version: 3.
    1717Requires at least: 6.2
    1818Requires PHP: 7.4
     
    3030    add_action( 'admin_notices', 'easyio_unsupported_php' );
    3131} elseif ( false === strpos( add_query_arg( '', '' ), 'easyio_disable=1' ) ) {
    32     define( 'EASYIO_VERSION', 355 );
     32    define( 'EASYIO_VERSION', 3 );
    3333
    3434    /**
  • easy-image-optimizer/tags/3.6.0/readme.txt

    r3017573 r3035873  
    55Tested up to: 6.4
    66Requires PHP: 7.4
    7 Stable tag: 3.5.5
     7Stable tag: 3.
    88License: GPLv3
    99
     
    5757
    5858* If you would like to help translate this plugin in your language, get started here: https://translate.wordpress.org/projects/wp-plugins/easy-image-optimizer/
     59
     60
     61
     62
     63
     64
     65
    5966
    6067= 3.5.5 =
  • easy-image-optimizer/tags/3.6.0/unique.php

    r2969931 r3035873  
    5555function easyio_activate() {
    5656    easyio_debug_message( '<b>' . __FUNCTION__ . '()</b>' );
     57
    5758    $permissions = apply_filters( 'easyio_admin_permissions', '' );
    5859    if ( false === current_user_can( $permissions ) ) {
     
    8283function easyio_deactivate() {
    8384    easyio_debug_message( '<b>' . __FUNCTION__ . '()</b>' );
     85
    8486    $permissions = apply_filters( 'easyio_admin_permissions', '' );
    8587    if ( false === current_user_can( $permissions ) ) {
     
    418420    echo '<div id="easyio-hs-beacon" class="notice notice-info"><p>' .
    419421        esc_html__( 'Enable the Easy IO support beacon, which gives you access to documentation and our support team right from your WordPress dashboard. To assist you more efficiently, we collect the current url, IP address, browser/device information, and debugging information.', 'easy-image-optimizer' ) .
    420         '<br><a href="' . esc_url( $optin_url ) . '" class="button-secondary">' . esc_html__( 'Allow', 'easy-image-optimizer' ) . '</a>' .
    421         '&nbsp;<a href="' . esc_url( $optout_url ) . '" class="button-secondary">' . esc_html__( 'Do not allow', 'easy-image-optimizer' ) . '</a>' .
     422        '<br><a href="' . esc_url( ) . '" class="button-secondary">' . esc_html__( 'Allow', 'easy-image-optimizer' ) . '</a>' .
     423        '&nbsp;<a href="' . esc_url( ) . '" class="button-secondary">' . esc_html__( 'Do not allow', 'easy-image-optimizer' ) . '</a>' .
    422424        '</p></div>';
    423425}
     
    862864                            </li>
    863865                            <li>
    864                                 <a id="easyio-activate" href="<?php echo esc_url( admin_url( 'admin.php?action=easyio_activate' ) ); ?>" class="button-primary">
     866                                <a id="easyio-activate" href="<?php echo esc_url( ' ) ); ?>" class="button-primary">
    865867                                    <?php esc_html_e( 'Activate', 'easy-image-optimizer' ); ?>
    866868                                </a>
     
    879881                            <?php esc_html_e( 'Manage Subscription', 'easy-image-optimizer' ); ?>
    880882                        </a>&nbsp;&nbsp;
    881                         <a href="admin.php?action=easyio_deactivate" class="page-title-action">
     883                        <a href="" class="page-title-action">
    882884                            <?php esc_html_e( 'Disable Optimizer', 'easy-image-optimizer' ); ?>
    883885                        </a>
     
    981983                easyio_debug_message( $ll_exclude_paths );
    982984                ?>
     985
     986
     987
     988
     989
     990
     991
     992
     993
     994
     995
     996
     997
     998
    983999            <?php endif; ?>
    9841000            <?php easyio_debug_message( 'remove metadata: ' . ( easyio_get_option( 'easyio_metadata_remove' ) ? 'on' : 'off' ) ); ?>
     
    10251041                    <td>
    10261042                        <p>
    1027                             <a target='_blank' href='<?php echo esc_url( admin_url( 'admin.php?action=easyio_view_debug_log' ) ); ?>'><?php esc_html_e( 'View Log', 'easy-image-optimizer' ); ?></a> -
    1028                             <a href='<?php echo esc_url( admin_url( 'admin.php?action=easyio_delete_debug_log' ) ); ?>'><?php esc_html_e( 'Clear Log', 'easy-image-optimizer' ); ?></a>
     1043                            <a target='_blank' href='<?php echo esc_url( ' ) ); ?>'><?php esc_html_e( 'View Log', 'easy-image-optimizer' ); ?></a> -
     1044                            <a href='<?php echo esc_url( ' ) ); ?>'><?php esc_html_e( 'Clear Log', 'easy-image-optimizer' ); ?></a>
    10291045                        </p>
    1030                         <p><a class='button button-secondary' target='_blank' href='<?php echo esc_url( admin_url( 'admin.php?action=easyio_download_debug_log' ) ); ?>'><?php esc_html_e( 'Download Log', 'easy-image-optimizer' ); ?></a></p>
     1046                        <p><a class='button button-secondary' target='_blank' href='<?php echo esc_url( ' ) ); ?>'><?php esc_html_e( 'Download Log', 'easy-image-optimizer' ); ?></a></p>
    10311047                    </td>
    10321048                </tr>
     
    11471163 */
    11481164function easyio_view_debug_log() {
     1165
    11491166    $permissions = apply_filters( 'easyio_admin_permissions', 'manage_options' );
    11501167    if ( false === current_user_can( $permissions ) ) {
     
    11641181 */
    11651182function easyio_delete_debug_log() {
     1183
    11661184    $permissions = apply_filters( 'easyio_admin_permissions', 'manage_options' );
    11671185    if ( false === current_user_can( $permissions ) ) {
     
    11831201 */
    11841202function easyio_download_debug_log() {
     1203
    11851204    if ( ! current_user_can( apply_filters( 'easyio_admin_permissions', 'manage_options' ) ) ) {
    11861205        wp_die( esc_html__( 'Access denied.', 'easy-image-optimizer' ) );
  • easy-image-optimizer/trunk/changelog.txt

    r3017573 r3035873  
     1
     2
     3
     4
     5
     6
     7
    18= 3.5.5 =
    29*Release Date - January 4, 2024*
  • easy-image-optimizer/trunk/classes/class-base.php

    r3017573 r3035873  
    689689        }
    690690        if ( 'ewww_image_optimizer_ll_all_things' === $option_name && \defined( $constant_name ) ) {
     691
     692
     693
    691694            return \sanitize_text_field( \constant( $constant_name ) );
    692695        }
     
    11991202
    12001203    /**
     1204
     1205
     1206
     1207
     1208
     1209
     1210
     1211
     1212
     1213
     1214
     1215
     1216
     1217
     1218
    12011219     * Set an option: use 'site' setting if plugin is network activated, otherwise use 'blog' setting.
    12021220     *
     
    12201238        }
    12211239        return $success;
     1240
     1241
     1242
     1243
     1244
     1245
     1246
     1247
     1248
     1249
     1250
     1251
     1252
     1253
     1254
     1255
     1256
     1257
     1258
     1259
     1260
     1261
    12221262    }
    12231263
     
    13111351                $this->debug_message( "found $allowed_url, replaced with $this->upload_url to get $local_url" );
    13121352                $path = $this->url_to_path_exists( $local_url );
     1353
     1354
     1355
     1356
     1357
     1358
    13131359                if ( $path ) {
    13141360                    return $path;
     
    15401586        // This is used by the WebP parsers, and by the Lazy Load via get_image_dimensions_by_url().
    15411587        $this->upload_url = \trailingslashit( ! empty( $upload_dir['baseurl'] ) ? $upload_dir['baseurl'] : \content_url( 'uploads' ) );
     1588
     1589
     1590
     1591
     1592
     1593
     1594
     1595
     1596
    15421597
    15431598        // But this is used by Easy IO, so it should be derived from the above logic instead, which already matches the site/home URLs against the upload URL.
  • easy-image-optimizer/trunk/classes/class-exactdn.php

    r3002888 r3035873  
    24072407                    $intermediate_url   = \str_replace( $image_url_basename, $image_meta['sizes'][ $size ]['file'], $image_url );
    24082408
    2409                     if ( empty( $image_meta['width'] ) || empty( $image_meta['height'] ) ) {
     2409                    if ( empty( $image_meta['['height'] ) ) {
    24102410                        list( $filename_width, $filename_height ) = $this->get_dimensions_from_filename( $intermediate_url );
    2411                     }
    2412                     $filename_width  = ! empty( $image_meta['width'] ) ? $image_meta['width'] : $filename_width;
    2413                     $filename_height = ! empty( $image_meta['height'] ) ? $image_meta['height'] : $filename_height;
     2411                    } else {
     2412                        $filename_width  = $image_meta['sizes'][ $size ]['width'];
     2413                        $filename_height = $image_meta['sizes'][ $size ]['height'];
     2414                    }
    24142415                    if ( $filename_width && $filename_height && $image_args['width'] === $filename_width && $image_args['height'] === $filename_height ) {
    24152416                        $this->debug_message( "changing $image_url to $intermediate_url" );
  • easy-image-optimizer/trunk/classes/class-hs-beacon.php

    r2963296 r3035873  
    3333     */
    3434    public function check_for_optin() {
     35
     36
     37
     38
     39
    3540        $this->debug_message( '<b>' . __METHOD__ . '()</b>' );
    3641        $this->set_option( $this->prefix . 'enable_help', 1 );
     
    4449     */
    4550    public function check_for_optout() {
     51
     52
     53
     54
     55
    4656        $this->debug_message( '<b>' . __METHOD__ . '()</b>' );
    4757        \delete_option( $this->prefix . 'enable_help' );
  • easy-image-optimizer/trunk/classes/class-plugin.php

    r2969931 r3035873  
    167167            $easyio_ll_exclude = empty( $_POST['easyio_ll_exclude'] ) ? '' : sanitize_textarea_field( wp_unslash( $_POST['easyio_ll_exclude'] ) );
    168168            \update_site_option( 'easyio_ll_exclude', $this->exclude_paths_sanitize( $easyio_ll_exclude ) );
     169
     170
    169171            $easyio_allow_multisite_override = empty( $_POST['easyio_allow_multisite_override'] ) ? false : true;
    170172            \update_site_option( 'easyio_allow_multisite_override', $easyio_allow_multisite_override );
     
    181183
    182184    /**
    183      * Register all our options and santiation functions.
     185     * Register all our options and sanation functions.
    184186     */
    185187    public function register_settings() {
     
    195197        \register_setting( 'easyio_options', 'easyio_use_lqip', 'boolval' );
    196198        \register_setting( 'easyio_options', 'easyio_ll_exclude', array( $this, 'exclude_paths_sanitize' ) );
     199
    197200    }
    198201
     
    218221        \add_option( 'easyio_ll_autoscale', true );
    219222        \add_option( 'easyio_ll_exclude', '' );
     223
    220224
    221225        // Set network defaults.
  • easy-image-optimizer/trunk/easy-image-optimizer.php

    r3017573 r3035873  
    1414Description: Easily speed up your website to better connect with your visitors. Properly compress and size/scale images. Includes lazy load and WebP auto-convert.
    1515Author: Exactly WWW
    16 Version: 3.5.5
     16Version: 3.
    1717Requires at least: 6.2
    1818Requires PHP: 7.4
     
    3030    add_action( 'admin_notices', 'easyio_unsupported_php' );
    3131} elseif ( false === strpos( add_query_arg( '', '' ), 'easyio_disable=1' ) ) {
    32     define( 'EASYIO_VERSION', 355 );
     32    define( 'EASYIO_VERSION', 3 );
    3333
    3434    /**
  • easy-image-optimizer/trunk/readme.txt

    r3017573 r3035873  
    55Tested up to: 6.4
    66Requires PHP: 7.4
    7 Stable tag: 3.5.5
     7Stable tag: 3.
    88License: GPLv3
    99
     
    5757
    5858* If you would like to help translate this plugin in your language, get started here: https://translate.wordpress.org/projects/wp-plugins/easy-image-optimizer/
     59
     60
     61
     62
     63
     64
     65
    5966
    6067= 3.5.5 =
  • easy-image-optimizer/trunk/unique.php

    r2969931 r3035873  
    5555function easyio_activate() {
    5656    easyio_debug_message( '<b>' . __FUNCTION__ . '()</b>' );
     57
    5758    $permissions = apply_filters( 'easyio_admin_permissions', '' );
    5859    if ( false === current_user_can( $permissions ) ) {
     
    8283function easyio_deactivate() {
    8384    easyio_debug_message( '<b>' . __FUNCTION__ . '()</b>' );
     85
    8486    $permissions = apply_filters( 'easyio_admin_permissions', '' );
    8587    if ( false === current_user_can( $permissions ) ) {
     
    418420    echo '<div id="easyio-hs-beacon" class="notice notice-info"><p>' .
    419421        esc_html__( 'Enable the Easy IO support beacon, which gives you access to documentation and our support team right from your WordPress dashboard. To assist you more efficiently, we collect the current url, IP address, browser/device information, and debugging information.', 'easy-image-optimizer' ) .
    420         '<br><a href="' . esc_url( $optin_url ) . '" class="button-secondary">' . esc_html__( 'Allow', 'easy-image-optimizer' ) . '</a>' .
    421         '&nbsp;<a href="' . esc_url( $optout_url ) . '" class="button-secondary">' . esc_html__( 'Do not allow', 'easy-image-optimizer' ) . '</a>' .
     422        '<br><a href="' . esc_url( ) . '" class="button-secondary">' . esc_html__( 'Allow', 'easy-image-optimizer' ) . '</a>' .
     423        '&nbsp;<a href="' . esc_url( ) . '" class="button-secondary">' . esc_html__( 'Do not allow', 'easy-image-optimizer' ) . '</a>' .
    422424        '</p></div>';
    423425}
     
    862864                            </li>
    863865                            <li>
    864                                 <a id="easyio-activate" href="<?php echo esc_url( admin_url( 'admin.php?action=easyio_activate' ) ); ?>" class="button-primary">
     866                                <a id="easyio-activate" href="<?php echo esc_url( ' ) ); ?>" class="button-primary">
    865867                                    <?php esc_html_e( 'Activate', 'easy-image-optimizer' ); ?>
    866868                                </a>
     
    879881                            <?php esc_html_e( 'Manage Subscription', 'easy-image-optimizer' ); ?>
    880882                        </a>&nbsp;&nbsp;
    881                         <a href="admin.php?action=easyio_deactivate" class="page-title-action">
     883                        <a href="" class="page-title-action">
    882884                            <?php esc_html_e( 'Disable Optimizer', 'easy-image-optimizer' ); ?>
    883885                        </a>
     
    981983                easyio_debug_message( $ll_exclude_paths );
    982984                ?>
     985
     986
     987
     988
     989
     990
     991
     992
     993
     994
     995
     996
     997
     998
    983999            <?php endif; ?>
    9841000            <?php easyio_debug_message( 'remove metadata: ' . ( easyio_get_option( 'easyio_metadata_remove' ) ? 'on' : 'off' ) ); ?>
     
    10251041                    <td>
    10261042                        <p>
    1027                             <a target='_blank' href='<?php echo esc_url( admin_url( 'admin.php?action=easyio_view_debug_log' ) ); ?>'><?php esc_html_e( 'View Log', 'easy-image-optimizer' ); ?></a> -
    1028                             <a href='<?php echo esc_url( admin_url( 'admin.php?action=easyio_delete_debug_log' ) ); ?>'><?php esc_html_e( 'Clear Log', 'easy-image-optimizer' ); ?></a>
     1043                            <a target='_blank' href='<?php echo esc_url( ' ) ); ?>'><?php esc_html_e( 'View Log', 'easy-image-optimizer' ); ?></a> -
     1044                            <a href='<?php echo esc_url( ' ) ); ?>'><?php esc_html_e( 'Clear Log', 'easy-image-optimizer' ); ?></a>
    10291045                        </p>
    1030                         <p><a class='button button-secondary' target='_blank' href='<?php echo esc_url( admin_url( 'admin.php?action=easyio_download_debug_log' ) ); ?>'><?php esc_html_e( 'Download Log', 'easy-image-optimizer' ); ?></a></p>
     1046                        <p><a class='button button-secondary' target='_blank' href='<?php echo esc_url( ' ) ); ?>'><?php esc_html_e( 'Download Log', 'easy-image-optimizer' ); ?></a></p>
    10311047                    </td>
    10321048                </tr>
     
    11471163 */
    11481164function easyio_view_debug_log() {
     1165
    11491166    $permissions = apply_filters( 'easyio_admin_permissions', 'manage_options' );
    11501167    if ( false === current_user_can( $permissions ) ) {
     
    11641181 */
    11651182function easyio_delete_debug_log() {
     1183
    11661184    $permissions = apply_filters( 'easyio_admin_permissions', 'manage_options' );
    11671185    if ( false === current_user_can( $permissions ) ) {
     
    11831201 */
    11841202function easyio_download_debug_log() {
     1203
    11851204    if ( ! current_user_can( apply_filters( 'easyio_admin_permissions', 'manage_options' ) ) ) {
    11861205        wp_die( esc_html__( 'Access denied.', 'easy-image-optimizer' ) );
Note: See TracChangeset for help on using the changeset viewer.