Changeset 3069168
- Timestamp:
- 04/11/2024 05:41:44 PM (4 months ago)
- 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 1 8 = 3.7.0 = 2 9 *Release Date - March 20, 2024* -
easy-image-optimizer/tags/3.8.0/classes/class-exactdn.php
r3055524 r3069168 331 331 332 332 // Filter Slider Revolution 7 REST API JSON. 333 if ( ! \defined( 'EXACTDN_SUPPRESS_JSON_FILTER' ) ) {333 if ( ' ) ) { 334 334 \add_filter( 'sr_get_full_slider_JSON', array( $this, 'sr7_slider_object' ) ); 335 335 } 336 336 337 \add_filter( 'revslider_add_slider_base', array( $this, 'sr7_slider_object' ) ); 338 339 337 340 \add_filter( 'sr_get_image_lists', array( $this, 'filter_sr7_image_lists' ) ); 338 341 … … 1082 1085 $src_orig = $images['img_url'][ $index ]; // Don't trim, because we'll use it for search/replacement later. 1083 1086 if ( \is_string( $src ) ) { 1084 $this->debug_message( $src);1087 $this->debug_message( ); 1085 1088 } else { 1086 1089 $this->debug_message( '$src is not a string?' ); … … 2036 2039 $this->debug_message( 'we have SR7 images to parse' ); 2037 2040 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'] ) ) { 2039 2042 $images[ $index ]['src'] = $this->generate_url( $image['src'] ); 2043 2044 2040 2045 } 2041 2046 } // End foreach() -- of more images found in the page. … … 3671 3676 $slider->params['bg']['image']['src'] = $this->generate_url( $slider->params['bg']['image']['src'] ); 3672 3677 } 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'] ) ) { 3674 3680 foreach ( $slider->params['imgs'] as $img_index => $slider_settings_img ) { 3675 3681 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 229 229 foreach ( $this->user_page_exclusions as $page_exclusion ) { 230 230 if ( '/' === $page_exclusion && '/' === $uri ) { 231 231 232 return false; 232 233 } elseif ( '/' === $page_exclusion ) { … … 234 235 } 235 236 if ( false !== \strpos( $uri, $page_exclusion ) ) { 237 236 238 return false; 237 239 } … … 601 603 $placeholder_types[] = 'lqip'; 602 604 } 605 606 607 603 608 if ( $this->parsing_exactdn && \apply_filters( 'eio_use_piip', true, $file ) ) { 604 609 $placeholder_types[] = 'epip'; … … 617 622 if ( false === \strpos( $file, 'nggid' ) && ! \preg_match( '#\.svg(\?|$)#', $file ) && \strpos( $file, $this->exactdn_domain ) ) { 618 623 $placeholder_src = add_query_arg( array( 'lazy' => 1 ), $file ); 624 625 626 627 628 629 630 631 619 632 $use_native_lazy = true; 620 633 break 2; … … 1154 1167 } 1155 1168 // 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' ) ) { */1157 1169 if ( 1158 1170 ! \is_file( $piip_path ) && -
easy-image-optimizer/tags/3.8.0/classes/class-plugin.php
r3035873 r3069168 165 165 $easyio_use_lqip = ( empty( $_POST['easyio_use_lqip'] ) ? false : true ); 166 166 \update_site_option( 'easyio_use_lqip', $easyio_use_lqip ); 167 168 167 169 $easyio_ll_exclude = empty( $_POST['easyio_ll_exclude'] ) ? '' : sanitize_textarea_field( wp_unslash( $_POST['easyio_ll_exclude'] ) ); 168 170 \update_site_option( 'easyio_ll_exclude', $this->exclude_paths_sanitize( $easyio_ll_exclude ) ); … … 196 198 \register_setting( 'easyio_options', 'easyio_lazy_load', 'boolval' ); 197 199 \register_setting( 'easyio_options', 'easyio_use_lqip', 'boolval' ); 200 198 201 \register_setting( 'easyio_options', 'easyio_ll_exclude', array( $this, 'exclude_paths_sanitize' ) ); 199 202 \register_setting( 'easyio_options', 'easyio_ll_all_things', 'sanitize_textarea_field' ); … … 218 221 \add_option( 'easyio_lazy_load', false ); 219 222 \add_option( 'easyio_use_lqip', false ); 223 220 224 \add_option( 'easyio_use_siip', false ); 221 225 \add_option( 'easyio_ll_autoscale', true ); -
easy-image-optimizer/tags/3.8.0/easy-image-optimizer.php
r3055524 r3069168 14 14 Description: Easily speed up your website to better connect with your visitors. Properly compress and size/scale images. Includes lazy load and WebP auto-convert. 15 15 Author: Exactly WWW 16 Version: 3. 7.017 Requires at least: 6. 218 Requires PHP: 7.416 Version: 3..0 17 Requires at least: 6. 18 Requires PHP: 19 19 Author URI: https://ewww.io/ 20 20 License: GPLv3 … … 26 26 27 27 // Check the PHP version. 28 if ( ! defined( 'PHP_VERSION_ID' ) || PHP_VERSION_ID < 70400 ) {28 if ( ! defined( 'PHP_VERSION_ID' ) || PHP_VERSION_ID < 00 ) { 29 29 add_action( 'network_admin_notices', 'easyio_unsupported_php' ); 30 30 add_action( 'admin_notices', 'easyio_unsupported_php' ); 31 31 } elseif ( false === strpos( add_query_arg( '', '' ), 'easyio_disable=1' ) ) { 32 define( 'EASYIO_VERSION', 3 70 );32 define( 'EASYIO_VERSION', 30 ); 33 33 34 34 /** … … 94 94 */ 95 95 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.4or 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>'; 97 97 } 98 98 } -
easy-image-optimizer/tags/3.8.0/phpcs.ruleset.xml
r3017573 r3069168 28 28 </rule> 29 29 30 <config name="testVersion"> 7.4-</config>30 <config name="testVersion">-</config> 31 31 <rule ref="PHPCompatibilityWP"> 32 32 <severity>10</severity> -
easy-image-optimizer/tags/3.8.0/readme.txt
r3055524 r3069168 2 2 Contributors: nosilver4u 3 3 Tags: optimize, image, resize, webp, lazy load, convert, compress, scale 4 Requires at least: 6. 24 Requires at least: 6. 5 5 Tested up to: 6.5 6 Requires PHP: 7.47 Stable tag: 3. 7.06 Requires PHP: 7 Stable tag: 3..0 8 8 License: GPLv3 9 9 … … 57 57 58 58 * 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 59 66 60 67 = 3.7.0 = -
easy-image-optimizer/tags/3.8.0/unique.php
r3035873 r3069168 970 970 <td> </td> 971 971 <td> 972 973 974 975 976 977 978 979 980 981 982 983 972 984 <label for='easyio_ll_exclude'><strong><?php esc_html_e( 'Exclusions', 'easy-image-optimizer' ); ?></strong></label> 973 985 <?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 1 8 = 3.7.0 = 2 9 *Release Date - March 20, 2024* -
easy-image-optimizer/trunk/classes/class-exactdn.php
r3055524 r3069168 331 331 332 332 // Filter Slider Revolution 7 REST API JSON. 333 if ( ! \defined( 'EXACTDN_SUPPRESS_JSON_FILTER' ) ) {333 if ( ' ) ) { 334 334 \add_filter( 'sr_get_full_slider_JSON', array( $this, 'sr7_slider_object' ) ); 335 335 } 336 336 337 \add_filter( 'revslider_add_slider_base', array( $this, 'sr7_slider_object' ) ); 338 339 337 340 \add_filter( 'sr_get_image_lists', array( $this, 'filter_sr7_image_lists' ) ); 338 341 … … 1082 1085 $src_orig = $images['img_url'][ $index ]; // Don't trim, because we'll use it for search/replacement later. 1083 1086 if ( \is_string( $src ) ) { 1084 $this->debug_message( $src);1087 $this->debug_message( ); 1085 1088 } else { 1086 1089 $this->debug_message( '$src is not a string?' ); … … 2036 2039 $this->debug_message( 'we have SR7 images to parse' ); 2037 2040 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'] ) ) { 2039 2042 $images[ $index ]['src'] = $this->generate_url( $image['src'] ); 2043 2044 2040 2045 } 2041 2046 } // End foreach() -- of more images found in the page. … … 3671 3676 $slider->params['bg']['image']['src'] = $this->generate_url( $slider->params['bg']['image']['src'] ); 3672 3677 } 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'] ) ) { 3674 3680 foreach ( $slider->params['imgs'] as $img_index => $slider_settings_img ) { 3675 3681 if ( \is_string( $slider_settings_img ) && $this->validate_image_url( $slider_settings_img ) ) { -
easy-image-optimizer/trunk/classes/class-lazy-load.php
r3055524 r3069168 229 229 foreach ( $this->user_page_exclusions as $page_exclusion ) { 230 230 if ( '/' === $page_exclusion && '/' === $uri ) { 231 231 232 return false; 232 233 } elseif ( '/' === $page_exclusion ) { … … 234 235 } 235 236 if ( false !== \strpos( $uri, $page_exclusion ) ) { 237 236 238 return false; 237 239 } … … 601 603 $placeholder_types[] = 'lqip'; 602 604 } 605 606 607 603 608 if ( $this->parsing_exactdn && \apply_filters( 'eio_use_piip', true, $file ) ) { 604 609 $placeholder_types[] = 'epip'; … … 617 622 if ( false === \strpos( $file, 'nggid' ) && ! \preg_match( '#\.svg(\?|$)#', $file ) && \strpos( $file, $this->exactdn_domain ) ) { 618 623 $placeholder_src = add_query_arg( array( 'lazy' => 1 ), $file ); 624 625 626 627 628 629 630 631 619 632 $use_native_lazy = true; 620 633 break 2; … … 1154 1167 } 1155 1168 // 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' ) ) { */1157 1169 if ( 1158 1170 ! \is_file( $piip_path ) && -
easy-image-optimizer/trunk/classes/class-plugin.php
r3035873 r3069168 165 165 $easyio_use_lqip = ( empty( $_POST['easyio_use_lqip'] ) ? false : true ); 166 166 \update_site_option( 'easyio_use_lqip', $easyio_use_lqip ); 167 168 167 169 $easyio_ll_exclude = empty( $_POST['easyio_ll_exclude'] ) ? '' : sanitize_textarea_field( wp_unslash( $_POST['easyio_ll_exclude'] ) ); 168 170 \update_site_option( 'easyio_ll_exclude', $this->exclude_paths_sanitize( $easyio_ll_exclude ) ); … … 196 198 \register_setting( 'easyio_options', 'easyio_lazy_load', 'boolval' ); 197 199 \register_setting( 'easyio_options', 'easyio_use_lqip', 'boolval' ); 200 198 201 \register_setting( 'easyio_options', 'easyio_ll_exclude', array( $this, 'exclude_paths_sanitize' ) ); 199 202 \register_setting( 'easyio_options', 'easyio_ll_all_things', 'sanitize_textarea_field' ); … … 218 221 \add_option( 'easyio_lazy_load', false ); 219 222 \add_option( 'easyio_use_lqip', false ); 223 220 224 \add_option( 'easyio_use_siip', false ); 221 225 \add_option( 'easyio_ll_autoscale', true ); -
easy-image-optimizer/trunk/easy-image-optimizer.php
r3055524 r3069168 14 14 Description: Easily speed up your website to better connect with your visitors. Properly compress and size/scale images. Includes lazy load and WebP auto-convert. 15 15 Author: Exactly WWW 16 Version: 3. 7.017 Requires at least: 6. 218 Requires PHP: 7.416 Version: 3..0 17 Requires at least: 6. 18 Requires PHP: 19 19 Author URI: https://ewww.io/ 20 20 License: GPLv3 … … 26 26 27 27 // Check the PHP version. 28 if ( ! defined( 'PHP_VERSION_ID' ) || PHP_VERSION_ID < 70400 ) {28 if ( ! defined( 'PHP_VERSION_ID' ) || PHP_VERSION_ID < 00 ) { 29 29 add_action( 'network_admin_notices', 'easyio_unsupported_php' ); 30 30 add_action( 'admin_notices', 'easyio_unsupported_php' ); 31 31 } elseif ( false === strpos( add_query_arg( '', '' ), 'easyio_disable=1' ) ) { 32 define( 'EASYIO_VERSION', 3 70 );32 define( 'EASYIO_VERSION', 30 ); 33 33 34 34 /** … … 94 94 */ 95 95 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.4or 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>'; 97 97 } 98 98 } -
easy-image-optimizer/trunk/phpcs.ruleset.xml
r3017573 r3069168 28 28 </rule> 29 29 30 <config name="testVersion"> 7.4-</config>30 <config name="testVersion">-</config> 31 31 <rule ref="PHPCompatibilityWP"> 32 32 <severity>10</severity> -
easy-image-optimizer/trunk/readme.txt
r3055524 r3069168 2 2 Contributors: nosilver4u 3 3 Tags: optimize, image, resize, webp, lazy load, convert, compress, scale 4 Requires at least: 6. 24 Requires at least: 6. 5 5 Tested up to: 6.5 6 Requires PHP: 7.47 Stable tag: 3. 7.06 Requires PHP: 7 Stable tag: 3..0 8 8 License: GPLv3 9 9 … … 57 57 58 58 * 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 59 66 60 67 = 3.7.0 = -
easy-image-optimizer/trunk/unique.php
r3035873 r3069168 970 970 <td> </td> 971 971 <td> 972 973 974 975 976 977 978 979 980 981 982 983 972 984 <label for='easyio_ll_exclude'><strong><?php esc_html_e( 'Exclusions', 'easy-image-optimizer' ); ?></strong></label> 973 985 <?php easyio_help_link( 'https://docs.ewww.io/article/74-lazy-load', '5c6c36ed042863543ccd2d9b' ); ?><br>
Note: See TracChangeset
for help on using the changeset viewer.