Plugin Directory

Changeset 3069168

Timestamp:
04/11/2024 05:41:44 PM (4 months ago)
Author:
nosilver4u
Message:

tagging and releasing 3.8.0

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

Legend:

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

    r3055524 r3069168  
     1
     2
     3
     4
     5
     6
     7
    18= 3.7.0 =
    29*Release Date - March 20, 2024*
  • easy-image-optimizer/tags/3.8.0/classes/class-exactdn.php

    r3055524 r3069168  
    331331
    332332        // Filter Slider Revolution 7 REST API JSON.
    333         if ( ! \defined( 'EXACTDN_SUPPRESS_JSON_FILTER' ) ) {
     333        if ( ' ) ) {
    334334            \add_filter( 'sr_get_full_slider_JSON', array( $this, 'sr7_slider_object' ) );
    335335        }
     336
    336337        \add_filter( 'revslider_add_slider_base', array( $this, 'sr7_slider_object' ) );
     338
     339
    337340        \add_filter( 'sr_get_image_lists', array( $this, 'filter_sr7_image_lists' ) );
    338341
     
    10821085                $src_orig = $images['img_url'][ $index ]; // Don't trim, because we'll use it for search/replacement later.
    10831086                if ( \is_string( $src ) ) {
    1084                     $this->debug_message( $src );
     1087                    $this->debug_message( );
    10851088                } else {
    10861089                    $this->debug_message( '$src is not a string?' );
     
    20362039            $this->debug_message( 'we have SR7 images to parse' );
    20372040            foreach ( $images as $index => $image ) {
    2038                 if ( ! empty( $image['src'] ) && $this->validate_image_url( $image['src'] ) ) {
     2041                if ( ! empty( $image['src'] ) && $this->validate_image_url( $image['src'] ) ) {
    20392042                    $images[ $index ]['src'] = $this->generate_url( $image['src'] );
     2043
     2044
    20402045                }
    20412046            } // End foreach() -- of more images found in the page.
     
    36713676                    $slider->params['bg']['image']['src'] = $this->generate_url( $slider->params['bg']['image']['src'] );
    36723677                }
    3673                 if ( ! empty( $slider->params['imgs'] ) && $this->is_iterable( $slider->params['imgs'] ) ) {
     3678                // This one is disabled, so that we are only altering the overall slider background for now.
     3679                if ( false && ! empty( $slider->params['imgs'] ) && $this->is_iterable( $slider->params['imgs'] ) ) {
    36743680                    foreach ( $slider->params['imgs'] as $img_index => $slider_settings_img ) {
    36753681                        if ( \is_string( $slider_settings_img ) && $this->validate_image_url( $slider_settings_img ) ) {
  • easy-image-optimizer/tags/3.8.0/classes/class-lazy-load.php

    r3055524 r3069168  
    229229            foreach ( $this->user_page_exclusions as $page_exclusion ) {
    230230                if ( '/' === $page_exclusion && '/' === $uri ) {
     231
    231232                    return false;
    232233                } elseif ( '/' === $page_exclusion ) {
     
    234235                }
    235236                if ( false !== \strpos( $uri, $page_exclusion ) ) {
     237
    236238                    return false;
    237239                }
     
    601603            $placeholder_types[] = 'lqip';
    602604        }
     605
     606
     607
    603608        if ( $this->parsing_exactdn && \apply_filters( 'eio_use_piip', true, $file ) ) {
    604609            $placeholder_types[] = 'epip';
     
    617622                    if ( false === \strpos( $file, 'nggid' ) && ! \preg_match( '#\.svg(\?|$)#', $file ) && \strpos( $file, $this->exactdn_domain ) ) {
    618623                        $placeholder_src = add_query_arg( array( 'lazy' => 1 ), $file );
     624
     625
     626
     627
     628
     629
     630
     631
    619632                        $use_native_lazy = true;
    620633                        break 2;
     
    11541167            }
    11551168            // If that didn't work, and we have a premium service, use the API to generate the slimmest PIP available.
    1156             /* if ( $this->get_option( 'ewww_image_optimizer_cloud_key' ) && ! defined( 'EWWW_IMAGE_OPTIMIZER_DISABLE_API_PIP' ) ) { */
    11571169            if (
    11581170                ! \is_file( $piip_path ) &&
  • easy-image-optimizer/tags/3.8.0/classes/class-plugin.php

    r3035873 r3069168  
    165165            $easyio_use_lqip = ( empty( $_POST['easyio_use_lqip'] ) ? false : true );
    166166            \update_site_option( 'easyio_use_lqip', $easyio_use_lqip );
     167
     168
    167169            $easyio_ll_exclude = empty( $_POST['easyio_ll_exclude'] ) ? '' : sanitize_textarea_field( wp_unslash( $_POST['easyio_ll_exclude'] ) );
    168170            \update_site_option( 'easyio_ll_exclude', $this->exclude_paths_sanitize( $easyio_ll_exclude ) );
     
    196198        \register_setting( 'easyio_options', 'easyio_lazy_load', 'boolval' );
    197199        \register_setting( 'easyio_options', 'easyio_use_lqip', 'boolval' );
     200
    198201        \register_setting( 'easyio_options', 'easyio_ll_exclude', array( $this, 'exclude_paths_sanitize' ) );
    199202        \register_setting( 'easyio_options', 'easyio_ll_all_things', 'sanitize_textarea_field' );
     
    218221        \add_option( 'easyio_lazy_load', false );
    219222        \add_option( 'easyio_use_lqip', false );
     223
    220224        \add_option( 'easyio_use_siip', false );
    221225        \add_option( 'easyio_ll_autoscale', true );
  • easy-image-optimizer/tags/3.8.0/easy-image-optimizer.php

    r3055524 r3069168  
    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.7.0
    17 Requires at least: 6.2
    18 Requires PHP: 7.4
     16Version: 3..0
     17Requires at least: 6.
     18Requires PHP:
    1919Author URI: https://ewww.io/
    2020License: GPLv3
     
    2626
    2727// Check the PHP version.
    28 if ( ! defined( 'PHP_VERSION_ID' ) || PHP_VERSION_ID < 70400 ) {
     28if ( ! defined( 'PHP_VERSION_ID' ) || PHP_VERSION_ID < 00 ) {
    2929    add_action( 'network_admin_notices', 'easyio_unsupported_php' );
    3030    add_action( 'admin_notices', 'easyio_unsupported_php' );
    3131} elseif ( false === strpos( add_query_arg( '', '' ), 'easyio_disable=1' ) ) {
    32     define( 'EASYIO_VERSION', 370 );
     32    define( 'EASYIO_VERSION', 30 );
    3333
    3434    /**
     
    9494     */
    9595    function easyio_unsupported_php() {
    96         echo '<div id="easyio-warning-php" class="error"><p><a href="https://docs.ewww.io/article/55-upgrading-php" target="_blank" data-beacon-article="5ab2baa6042863478ea7c2ae">' . esc_html__( 'Easy Image Optimizer requires PHP 7.4 or greater. Newer versions of PHP are faster and more secure. If you are unsure how to upgrade to a supported version, ask your webhost for instructions.', 'easy-image-optimizer' ) . '</a></p></div>';
     96        echo '<div id="easyio-warning-php" class="error"><p><a href="https://docs.ewww.io/article/55-upgrading-php" target="_blank" data-beacon-article="5ab2baa6042863478ea7c2ae">' . esc_html__( 'Easy Image Optimizer requires PHP or greater. Newer versions of PHP are faster and more secure. If you are unsure how to upgrade to a supported version, ask your webhost for instructions.', 'easy-image-optimizer' ) . '</a></p></div>';
    9797    }
    9898}
  • easy-image-optimizer/tags/3.8.0/phpcs.ruleset.xml

    r3017573 r3069168  
    2828    </rule>
    2929
    30     <config name="testVersion">7.4-</config>
     30    <config name="testVersion">-</config>
    3131    <rule ref="PHPCompatibilityWP">
    3232        <severity>10</severity>
  • easy-image-optimizer/tags/3.8.0/readme.txt

    r3055524 r3069168  
    22Contributors: nosilver4u
    33Tags: optimize, image, resize, webp, lazy load, convert, compress, scale
    4 Requires at least: 6.2
     4Requires at least: 6.
    55Tested up to: 6.5
    6 Requires PHP: 7.4
    7 Stable tag: 3.7.0
     6Requires PHP:
     7Stable tag: 3..0
    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.7.0 =
  • easy-image-optimizer/tags/3.8.0/unique.php

    r3035873 r3069168  
    970970                    <td>&nbsp;</td>
    971971                    <td>
     972
     973
     974
     975
     976
     977
     978
     979
     980
     981
     982
     983
    972984                        <label for='easyio_ll_exclude'><strong><?php esc_html_e( 'Exclusions', 'easy-image-optimizer' ); ?></strong></label>
    973985                        <?php easyio_help_link( 'https://docs.ewww.io/article/74-lazy-load', '5c6c36ed042863543ccd2d9b' ); ?><br>
  • easy-image-optimizer/trunk/changelog.txt

    r3055524 r3069168  
     1
     2
     3
     4
     5
     6
     7
    18= 3.7.0 =
    29*Release Date - March 20, 2024*
  • easy-image-optimizer/trunk/classes/class-exactdn.php

    r3055524 r3069168  
    331331
    332332        // Filter Slider Revolution 7 REST API JSON.
    333         if ( ! \defined( 'EXACTDN_SUPPRESS_JSON_FILTER' ) ) {
     333        if ( ' ) ) {
    334334            \add_filter( 'sr_get_full_slider_JSON', array( $this, 'sr7_slider_object' ) );
    335335        }
     336
    336337        \add_filter( 'revslider_add_slider_base', array( $this, 'sr7_slider_object' ) );
     338
     339
    337340        \add_filter( 'sr_get_image_lists', array( $this, 'filter_sr7_image_lists' ) );
    338341
     
    10821085                $src_orig = $images['img_url'][ $index ]; // Don't trim, because we'll use it for search/replacement later.
    10831086                if ( \is_string( $src ) ) {
    1084                     $this->debug_message( $src );
     1087                    $this->debug_message( );
    10851088                } else {
    10861089                    $this->debug_message( '$src is not a string?' );
     
    20362039            $this->debug_message( 'we have SR7 images to parse' );
    20372040            foreach ( $images as $index => $image ) {
    2038                 if ( ! empty( $image['src'] ) && $this->validate_image_url( $image['src'] ) ) {
     2041                if ( ! empty( $image['src'] ) && $this->validate_image_url( $image['src'] ) ) {
    20392042                    $images[ $index ]['src'] = $this->generate_url( $image['src'] );
     2043
     2044
    20402045                }
    20412046            } // End foreach() -- of more images found in the page.
     
    36713676                    $slider->params['bg']['image']['src'] = $this->generate_url( $slider->params['bg']['image']['src'] );
    36723677                }
    3673                 if ( ! empty( $slider->params['imgs'] ) && $this->is_iterable( $slider->params['imgs'] ) ) {
     3678                // This one is disabled, so that we are only altering the overall slider background for now.
     3679                if ( false && ! empty( $slider->params['imgs'] ) && $this->is_iterable( $slider->params['imgs'] ) ) {
    36743680                    foreach ( $slider->params['imgs'] as $img_index => $slider_settings_img ) {
    36753681                        if ( \is_string( $slider_settings_img ) && $this->validate_image_url( $slider_settings_img ) ) {
  • easy-image-optimizer/trunk/classes/class-lazy-load.php

    r3055524 r3069168  
    229229            foreach ( $this->user_page_exclusions as $page_exclusion ) {
    230230                if ( '/' === $page_exclusion && '/' === $uri ) {
     231
    231232                    return false;
    232233                } elseif ( '/' === $page_exclusion ) {
     
    234235                }
    235236                if ( false !== \strpos( $uri, $page_exclusion ) ) {
     237
    236238                    return false;
    237239                }
     
    601603            $placeholder_types[] = 'lqip';
    602604        }
     605
     606
     607
    603608        if ( $this->parsing_exactdn && \apply_filters( 'eio_use_piip', true, $file ) ) {
    604609            $placeholder_types[] = 'epip';
     
    617622                    if ( false === \strpos( $file, 'nggid' ) && ! \preg_match( '#\.svg(\?|$)#', $file ) && \strpos( $file, $this->exactdn_domain ) ) {
    618623                        $placeholder_src = add_query_arg( array( 'lazy' => 1 ), $file );
     624
     625
     626
     627
     628
     629
     630
     631
    619632                        $use_native_lazy = true;
    620633                        break 2;
     
    11541167            }
    11551168            // If that didn't work, and we have a premium service, use the API to generate the slimmest PIP available.
    1156             /* if ( $this->get_option( 'ewww_image_optimizer_cloud_key' ) && ! defined( 'EWWW_IMAGE_OPTIMIZER_DISABLE_API_PIP' ) ) { */
    11571169            if (
    11581170                ! \is_file( $piip_path ) &&
  • easy-image-optimizer/trunk/classes/class-plugin.php

    r3035873 r3069168  
    165165            $easyio_use_lqip = ( empty( $_POST['easyio_use_lqip'] ) ? false : true );
    166166            \update_site_option( 'easyio_use_lqip', $easyio_use_lqip );
     167
     168
    167169            $easyio_ll_exclude = empty( $_POST['easyio_ll_exclude'] ) ? '' : sanitize_textarea_field( wp_unslash( $_POST['easyio_ll_exclude'] ) );
    168170            \update_site_option( 'easyio_ll_exclude', $this->exclude_paths_sanitize( $easyio_ll_exclude ) );
     
    196198        \register_setting( 'easyio_options', 'easyio_lazy_load', 'boolval' );
    197199        \register_setting( 'easyio_options', 'easyio_use_lqip', 'boolval' );
     200
    198201        \register_setting( 'easyio_options', 'easyio_ll_exclude', array( $this, 'exclude_paths_sanitize' ) );
    199202        \register_setting( 'easyio_options', 'easyio_ll_all_things', 'sanitize_textarea_field' );
     
    218221        \add_option( 'easyio_lazy_load', false );
    219222        \add_option( 'easyio_use_lqip', false );
     223
    220224        \add_option( 'easyio_use_siip', false );
    221225        \add_option( 'easyio_ll_autoscale', true );
  • easy-image-optimizer/trunk/easy-image-optimizer.php

    r3055524 r3069168  
    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.7.0
    17 Requires at least: 6.2
    18 Requires PHP: 7.4
     16Version: 3..0
     17Requires at least: 6.
     18Requires PHP:
    1919Author URI: https://ewww.io/
    2020License: GPLv3
     
    2626
    2727// Check the PHP version.
    28 if ( ! defined( 'PHP_VERSION_ID' ) || PHP_VERSION_ID < 70400 ) {
     28if ( ! defined( 'PHP_VERSION_ID' ) || PHP_VERSION_ID < 00 ) {
    2929    add_action( 'network_admin_notices', 'easyio_unsupported_php' );
    3030    add_action( 'admin_notices', 'easyio_unsupported_php' );
    3131} elseif ( false === strpos( add_query_arg( '', '' ), 'easyio_disable=1' ) ) {
    32     define( 'EASYIO_VERSION', 370 );
     32    define( 'EASYIO_VERSION', 30 );
    3333
    3434    /**
     
    9494     */
    9595    function easyio_unsupported_php() {
    96         echo '<div id="easyio-warning-php" class="error"><p><a href="https://docs.ewww.io/article/55-upgrading-php" target="_blank" data-beacon-article="5ab2baa6042863478ea7c2ae">' . esc_html__( 'Easy Image Optimizer requires PHP 7.4 or greater. Newer versions of PHP are faster and more secure. If you are unsure how to upgrade to a supported version, ask your webhost for instructions.', 'easy-image-optimizer' ) . '</a></p></div>';
     96        echo '<div id="easyio-warning-php" class="error"><p><a href="https://docs.ewww.io/article/55-upgrading-php" target="_blank" data-beacon-article="5ab2baa6042863478ea7c2ae">' . esc_html__( 'Easy Image Optimizer requires PHP or greater. Newer versions of PHP are faster and more secure. If you are unsure how to upgrade to a supported version, ask your webhost for instructions.', 'easy-image-optimizer' ) . '</a></p></div>';
    9797    }
    9898}
  • easy-image-optimizer/trunk/phpcs.ruleset.xml

    r3017573 r3069168  
    2828    </rule>
    2929
    30     <config name="testVersion">7.4-</config>
     30    <config name="testVersion">-</config>
    3131    <rule ref="PHPCompatibilityWP">
    3232        <severity>10</severity>
  • easy-image-optimizer/trunk/readme.txt

    r3055524 r3069168  
    22Contributors: nosilver4u
    33Tags: optimize, image, resize, webp, lazy load, convert, compress, scale
    4 Requires at least: 6.2
     4Requires at least: 6.
    55Tested up to: 6.5
    6 Requires PHP: 7.4
    7 Stable tag: 3.7.0
     6Requires PHP:
     7Stable tag: 3..0
    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.7.0 =
  • easy-image-optimizer/trunk/unique.php

    r3035873 r3069168  
    970970                    <td>&nbsp;</td>
    971971                    <td>
     972
     973
     974
     975
     976
     977
     978
     979
     980
     981
     982
     983
    972984                        <label for='easyio_ll_exclude'><strong><?php esc_html_e( 'Exclusions', 'easy-image-optimizer' ); ?></strong></label>
    973985                        <?php easyio_help_link( 'https://docs.ewww.io/article/74-lazy-load', '5c6c36ed042863543ccd2d9b' ); ?><br>
Note: See TracChangeset for help on using the changeset viewer.