Changeset 2969931
- Timestamp:
- 09/21/2023 05:47:29 PM (11 months ago)
- Location:
- easy-image-optimizer
- Files:
-
- 20 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
easy-image-optimizer/tags/3.5.2/.travis.yml
r2963296 r2969931 24 24 - phpenv config-rm xdebug.ini 25 25 - composer global config allow-plugins.dealerdirect/phpcodesniffer-composer-installer true 26 - composer global require --dev wp-coding-standards/wpcs dealerdirect/phpcodesniffer-composer-installer26 - composer global require --dev wp-coding-standards/wpcs 27 27 28 28 script: -
easy-image-optimizer/tags/3.5.2/changelog.txt
r2963296 r2969931 1 2 3 4 1 5 = 3.5.1 = 2 6 * changed: use updated coding standards -
easy-image-optimizer/tags/3.5.2/classes/class-base.php
r2963296 r2969931 815 815 /** 816 816 * Make sure this is really and truly a "front-end request", excluding page builders and such. 817 * N otethis is not currently used anywhere, each module has it's own list.817 * N this is not currently used anywhere, each module has it's own list. 818 818 * 819 819 * @return bool True for front-end requests, false for admin/builder requests. -
easy-image-optimizer/tags/3.5.2/classes/class-exactdn.php
r2963296 r2969931 3628 3628 return true; 3629 3629 } 3630 if ( false !== \strpos( $uri, 'cornerstone=' ) || false !== \strpos( $uri, 'cornerstone-endpoint' ) ) { 3630 if ( false !== \strpos( $uri, 'cornerstone=' ) || false !== \strpos( $uri, 'cornerstone-endpoint' ) || false !== \strpos( $uri, 'cornerstone/edit/' ) ) { 3631 return true; 3632 } 3633 if ( \did_action( 'cs_element_rendering' ) || \did_action( 'cornerstone_before_boot_app' ) || \apply_filters( 'cs_is_preview_render', false ) ) { 3631 3634 return true; 3632 3635 } … … 3699 3702 } 3700 3703 if ( \did_action( 'cornerstone_boot_app' ) || \did_action( 'cs_before_preview_frame' ) ) { 3704 3705 3706 3701 3707 return $url; 3702 3708 } -
easy-image-optimizer/tags/3.5.2/classes/class-lazy-load.php
r2963296 r2969931 247 247 return false; 248 248 } 249 if ( false !== \strpos( $uri, 'cornerstone=' ) || false !== \strpos( $uri, 'cornerstone-endpoint' ) ) {249 if ( false !== \strpos( $uri, 'cornerstone=' ) || false !== \strpos( $uri, 'cornerstone-endpoint' ) ) { 250 250 return false; 251 251 } … … 257 257 } 258 258 if ( \did_action( 'cornerstone_boot_app' ) || \did_action( 'cs_before_preview_frame' ) ) { 259 260 261 259 262 return false; 260 263 } -
easy-image-optimizer/tags/3.5.2/classes/class-plugin.php
r2963296 r2969931 140 140 \is_multisite() && 141 141 \is_plugin_active_for_network( EASYIO_PLUGIN_FILE_REL ) && 142 142 143 isset( $_POST['option_page'] ) && 143 false !== \strpos( $_POST['option_page'], 'easyio_options' ) &&144 \wp_verify_nonce( $_REQUEST['_wpnonce'], 'easyio_options-options' ) &&144 false !== \strpos( , 'easyio_options' ) && 145 \wp_verify_nonce( , 'easyio_options-options' ) && 145 146 \current_user_can( 'manage_network_options' ) && 146 147 ! \get_site_option( 'easyio_allow_multisite_override' ) && 147 false === \strpos( $_POST['_wp_http_referer'], 'options-general' )148 false === \strpos( , 'options-general' ) 148 149 ) { 149 150 $this->debug_message( 'network-wide settings, no override' ); 150 $_POST['easyio_debug'] = ( empty( $_POST['easyio_debug'] ) ? false : true ); 151 \update_site_option( 'easyio_debug', $_POST['easyio_debug'] ); 152 $_POST['easyio_metadata_remove'] = ( empty( $_POST['easyio_metadata_remove'] ) ? false : true ); 153 \update_site_option( 'easyio_metadata_remove', $_POST['easyio_metadata_remove'] ); 154 $_POST['easyio_exactdn'] = ( empty( $_POST['easyio_exactdn'] ) ? false : true ); 155 \update_site_option( 'easyio_exactdn', $_POST['easyio_exactdn'] ); 156 $_POST['exactdn_all_the_things'] = ( empty( $_POST['exactdn_all_the_things'] ) ? false : true ); 157 \update_site_option( 'exactdn_all_the_things', $_POST['exactdn_all_the_things'] ); 158 $_POST['exactdn_lossy'] = ( empty( $_POST['exactdn_lossy'] ) ? false : true ); 159 \update_site_option( 'exactdn_lossy', $_POST['exactdn_lossy'] ); 160 $_POST['exactdn_exclude'] = empty( $_POST['exactdn_exclude'] ) ? '' : $_POST['exactdn_exclude']; 161 \update_site_option( 'exactdn_exclude', $this->exclude_paths_sanitize( $_POST['exactdn_exclude'] ) ); 162 $_POST['easyio_add_missing_dims'] = ( empty( $_POST['easyio_add_missing_dims'] ) ? false : true ); 163 \update_site_option( 'easyio_add_missing_dims', $_POST['easyio_add_missing_dims'] ); 164 $_POST['easyio_lazy_load'] = ( empty( $_POST['easyio_lazy_load'] ) ? false : true ); 165 \update_site_option( 'easyio_lazy_load', $_POST['easyio_lazy_load'] ); 166 $_POST['easyio_use_lqip'] = ( empty( $_POST['easyio_use_lqip'] ) ? false : true ); 167 \update_site_option( 'easyio_use_lqip', $_POST['easyio_use_lqip'] ); 168 $_POST['easyio_ll_exclude'] = empty( $_POST['easyio_ll_exclude'] ) ? '' : $_POST['easyio_ll_exclude']; 169 \update_site_option( 'easyio_ll_exclude', $this->exclude_paths_sanitize( $_POST['easyio_ll_exclude'] ) ); 170 $_POST['easyio_allow_multisite_override'] = empty( $_POST['easyio_allow_multisite_override'] ) ? false : true; 171 \update_site_option( 'easyio_allow_multisite_override', $_POST['easyio_allow_multisite_override'] ); 172 $_POST['easyio_enable_help'] = empty( $_POST['easyio_enable_help'] ) ? false : true; 173 \update_site_option( 'easyio_enable_help', $_POST['easyio_enable_help'] ); 151 $easyio_debug = ( empty( $_POST['easyio_debug'] ) ? false : true ); 152 \update_site_option( 'easyio_debug', $easyio_debug ); 153 $easyio_metadata_remove = ( empty( $_POST['easyio_metadata_remove'] ) ? false : true ); 154 \update_site_option( 'easyio_metadata_remove', $easyio_metadata_remove ); 155 $exactdn_all_the_things = ( empty( $_POST['exactdn_all_the_things'] ) ? false : true ); 156 \update_site_option( 'exactdn_all_the_things', $exactdn_all_the_things ); 157 $exactdn_lossy = ( empty( $_POST['exactdn_lossy'] ) ? false : true ); 158 \update_site_option( 'exactdn_lossy', $exactdn_lossy ); 159 $exactdn_exclude = empty( $_POST['exactdn_exclude'] ) ? '' : sanitize_textarea_field( wp_unslash( $_POST['exactdn_exclude'] ) ); 160 \update_site_option( 'exactdn_exclude', $this->exclude_paths_sanitize( $exactdn_exclude ) ); 161 $easyio_add_missing_dims = ( empty( $_POST['easyio_add_missing_dims'] ) ? false : true ); 162 \update_site_option( 'easyio_add_missing_dims', $easyio_add_missing_dims ); 163 $easyio_lazy_load = ( empty( $_POST['easyio_lazy_load'] ) ? false : true ); 164 \update_site_option( 'easyio_lazy_load', $easyio_lazy_load ); 165 $easyio_use_lqip = ( empty( $_POST['easyio_use_lqip'] ) ? false : true ); 166 \update_site_option( 'easyio_use_lqip', $easyio_use_lqip ); 167 $easyio_ll_exclude = empty( $_POST['easyio_ll_exclude'] ) ? '' : sanitize_textarea_field( wp_unslash( $_POST['easyio_ll_exclude'] ) ); 168 \update_site_option( 'easyio_ll_exclude', $this->exclude_paths_sanitize( $easyio_ll_exclude ) ); 169 $easyio_allow_multisite_override = empty( $_POST['easyio_allow_multisite_override'] ) ? false : true; 170 \update_site_option( 'easyio_allow_multisite_override', $easyio_allow_multisite_override ); 171 $easyio_enable_help = empty( $_POST['easyio_enable_help'] ) ? false : true; 172 \update_site_option( 'easyio_enable_help', $easyio_enable_help ); 174 173 \add_action( 'network_admin_notices', 'easyio_network_settings_saved' ); 175 } elseif ( isset( $_POST['easyio_allow_multisite_override_active'] ) && \current_user_can( 'manage_network_options' ) && \wp_verify_nonce( $_REQUEST['_wpnonce'], 'easyio_options-options' ) ) {174 } elseif ( isset( $_POST['easyio_allow_multisite_override_active'] ) && \current_user_can( 'manage_network_options' ) && , 'easyio_options-options' ) ) { 176 175 $this->debug_message( 'network-wide settings, single-site overriding' ); 177 $ _POST['easyio_allow_multisite_override']= empty( $_POST['easyio_allow_multisite_override'] ) ? false : true;178 \update_site_option( 'easyio_allow_multisite_override', $ _POST['easyio_allow_multisite_override']);176 $ = empty( $_POST['easyio_allow_multisite_override'] ) ? false : true; 177 \update_site_option( 'easyio_allow_multisite_override', $ ); 179 178 \add_action( 'network_admin_notices', 'easyio_network_settings_saved' ); 180 179 } // End if(). -
easy-image-optimizer/tags/3.5.2/easy-image-optimizer.php
r2963296 r2969931 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.5. 116 Version: 3.5. 17 17 Requires at least: 6.1 18 18 Requires PHP: 7.4 … … 29 29 add_action( 'network_admin_notices', 'easyio_unsupported_php' ); 30 30 add_action( 'admin_notices', 'easyio_unsupported_php' ); 31 } elseif ( empty( $_GET['easyio_disable']) ) {32 define( 'EASYIO_VERSION', 35 1);31 } elseif ( ) ) { 32 define( 'EASYIO_VERSION', 35 ); 33 33 34 34 /** -
easy-image-optimizer/tags/3.5.2/phpcs.ruleset.xml
r2142075 r2969931 30 30 </properties> 31 31 </rule> 32 33 34 35 36 37 38 39 40 41 42 43 44 32 45 </ruleset> -
easy-image-optimizer/tags/3.5.2/readme.txt
r2963296 r2969931 5 5 Tested up to: 6.3 6 6 Requires PHP: 7.4 7 Stable tag: 3.5. 17 Stable tag: 3.5. 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 59 63 60 64 = 3.5.1 = -
easy-image-optimizer/tags/3.5.2/unique.php
r2963296 r2969931 73 73 } 74 74 $sendback = wp_get_referer(); 75 wp_ redirect( esc_url_raw( $sendback ) );75 wp_redirect( esc_url_raw( $sendback ) ); 76 76 exit( 0 ); 77 77 } … … 102 102 $buffer_start = false; 103 103 // If ExactDN is enabled. 104 if ( easyio_get_option( 'easyio_exactdn' ) && empty( $_GET['exactdn_disable']) ) {104 if ( easyio_get_option( 'easyio_exactdn' ) && ) ) { 105 105 $buffer_start = true; 106 106 /** … … 318 318 */ 319 319 function easyio_notice_inactive() { 320 $settings_url = esc_url( admin_url( 'options-general.php?page=easy-image-optimizer-options' ) );321 320 echo "<div id='easyio-inactive' class='notice notice-warning'><p>" . 322 "<a href='$settings_url'>". esc_html__( 'Please visit the settings page to complete activation of the Easy Image Optimizer.', 'easy-image-optimizer' ) . '</a></p></div>';321 . esc_html__( 'Please visit the settings page to complete activation of the Easy Image Optimizer.', 'easy-image-optimizer' ) . '</a></p></div>'; 323 322 } 324 323 … … 337 336 'https://docs.ewww.io/article/66-exactdn-not-verified' 338 337 ) . 339 '<br><code>' . $exactdn_activate_error. '</code>' .338 '<br><code>' . . '</code>' . 340 339 '</p></div>'; 341 340 } … … 713 712 */ 714 713 function easyio_network_options() { 715 $output = '';716 $output .= "<div class='wrap'>\n";717 718 714 $icon_link = plugins_url( '/images/easyio-toon-car.png', __FILE__ ); 719 $output .= "<img style='float:right;' src='$icon_link' />"; 720 721 $output .= "<h1>Easy Image Optimizer</h1>\n"; 722 $output .= '<p>' . esc_html__( 'The Easy Image Optimizer must be configured and activated on each individual site.', 'easy-image-optimizer' ) . '</p>'; 723 $output .= '</div>'; 724 echo $output; 715 ?> 716 <div class='wrap'> 717 <img style='float:right;' src='<?php esc_url( $icon_link ); ?>' /> 718 <h1>Easy Image Optimizer</h1> 719 <p><?php esc_html_e( 'The Easy Image Optimizer must be configured and activated on each individual site.', 'easy-image-optimizer' ); ?></p> 720 </div> 721 <?php 725 722 } 726 723 … … 1079 1076 Beacon( 'prefill', { 1080 1077 email: '<?php echo esc_js( $help_email ); ?>', 1081 text: '\n\n----------------------------------------\n<?php echo $hs_debug; ?>',1078 text: '\n\n----------------------------------------\n<?php echo ; ?>', 1082 1079 }); 1083 1080 </script> -
easy-image-optimizer/trunk/.travis.yml
r2963296 r2969931 24 24 - phpenv config-rm xdebug.ini 25 25 - composer global config allow-plugins.dealerdirect/phpcodesniffer-composer-installer true 26 - composer global require --dev wp-coding-standards/wpcs dealerdirect/phpcodesniffer-composer-installer26 - composer global require --dev wp-coding-standards/wpcs 27 27 28 28 script: -
easy-image-optimizer/trunk/changelog.txt
r2963296 r2969931 1 2 3 4 1 5 = 3.5.1 = 2 6 * changed: use updated coding standards -
easy-image-optimizer/trunk/classes/class-base.php
r2963296 r2969931 815 815 /** 816 816 * Make sure this is really and truly a "front-end request", excluding page builders and such. 817 * N otethis is not currently used anywhere, each module has it's own list.817 * N this is not currently used anywhere, each module has it's own list. 818 818 * 819 819 * @return bool True for front-end requests, false for admin/builder requests. -
easy-image-optimizer/trunk/classes/class-exactdn.php
r2963296 r2969931 3628 3628 return true; 3629 3629 } 3630 if ( false !== \strpos( $uri, 'cornerstone=' ) || false !== \strpos( $uri, 'cornerstone-endpoint' ) ) { 3630 if ( false !== \strpos( $uri, 'cornerstone=' ) || false !== \strpos( $uri, 'cornerstone-endpoint' ) || false !== \strpos( $uri, 'cornerstone/edit/' ) ) { 3631 return true; 3632 } 3633 if ( \did_action( 'cs_element_rendering' ) || \did_action( 'cornerstone_before_boot_app' ) || \apply_filters( 'cs_is_preview_render', false ) ) { 3631 3634 return true; 3632 3635 } … … 3699 3702 } 3700 3703 if ( \did_action( 'cornerstone_boot_app' ) || \did_action( 'cs_before_preview_frame' ) ) { 3704 3705 3706 3701 3707 return $url; 3702 3708 } -
easy-image-optimizer/trunk/classes/class-lazy-load.php
r2963296 r2969931 247 247 return false; 248 248 } 249 if ( false !== \strpos( $uri, 'cornerstone=' ) || false !== \strpos( $uri, 'cornerstone-endpoint' ) ) {249 if ( false !== \strpos( $uri, 'cornerstone=' ) || false !== \strpos( $uri, 'cornerstone-endpoint' ) ) { 250 250 return false; 251 251 } … … 257 257 } 258 258 if ( \did_action( 'cornerstone_boot_app' ) || \did_action( 'cs_before_preview_frame' ) ) { 259 260 261 259 262 return false; 260 263 } -
easy-image-optimizer/trunk/classes/class-plugin.php
r2963296 r2969931 140 140 \is_multisite() && 141 141 \is_plugin_active_for_network( EASYIO_PLUGIN_FILE_REL ) && 142 142 143 isset( $_POST['option_page'] ) && 143 false !== \strpos( $_POST['option_page'], 'easyio_options' ) &&144 \wp_verify_nonce( $_REQUEST['_wpnonce'], 'easyio_options-options' ) &&144 false !== \strpos( , 'easyio_options' ) && 145 \wp_verify_nonce( , 'easyio_options-options' ) && 145 146 \current_user_can( 'manage_network_options' ) && 146 147 ! \get_site_option( 'easyio_allow_multisite_override' ) && 147 false === \strpos( $_POST['_wp_http_referer'], 'options-general' )148 false === \strpos( , 'options-general' ) 148 149 ) { 149 150 $this->debug_message( 'network-wide settings, no override' ); 150 $_POST['easyio_debug'] = ( empty( $_POST['easyio_debug'] ) ? false : true ); 151 \update_site_option( 'easyio_debug', $_POST['easyio_debug'] ); 152 $_POST['easyio_metadata_remove'] = ( empty( $_POST['easyio_metadata_remove'] ) ? false : true ); 153 \update_site_option( 'easyio_metadata_remove', $_POST['easyio_metadata_remove'] ); 154 $_POST['easyio_exactdn'] = ( empty( $_POST['easyio_exactdn'] ) ? false : true ); 155 \update_site_option( 'easyio_exactdn', $_POST['easyio_exactdn'] ); 156 $_POST['exactdn_all_the_things'] = ( empty( $_POST['exactdn_all_the_things'] ) ? false : true ); 157 \update_site_option( 'exactdn_all_the_things', $_POST['exactdn_all_the_things'] ); 158 $_POST['exactdn_lossy'] = ( empty( $_POST['exactdn_lossy'] ) ? false : true ); 159 \update_site_option( 'exactdn_lossy', $_POST['exactdn_lossy'] ); 160 $_POST['exactdn_exclude'] = empty( $_POST['exactdn_exclude'] ) ? '' : $_POST['exactdn_exclude']; 161 \update_site_option( 'exactdn_exclude', $this->exclude_paths_sanitize( $_POST['exactdn_exclude'] ) ); 162 $_POST['easyio_add_missing_dims'] = ( empty( $_POST['easyio_add_missing_dims'] ) ? false : true ); 163 \update_site_option( 'easyio_add_missing_dims', $_POST['easyio_add_missing_dims'] ); 164 $_POST['easyio_lazy_load'] = ( empty( $_POST['easyio_lazy_load'] ) ? false : true ); 165 \update_site_option( 'easyio_lazy_load', $_POST['easyio_lazy_load'] ); 166 $_POST['easyio_use_lqip'] = ( empty( $_POST['easyio_use_lqip'] ) ? false : true ); 167 \update_site_option( 'easyio_use_lqip', $_POST['easyio_use_lqip'] ); 168 $_POST['easyio_ll_exclude'] = empty( $_POST['easyio_ll_exclude'] ) ? '' : $_POST['easyio_ll_exclude']; 169 \update_site_option( 'easyio_ll_exclude', $this->exclude_paths_sanitize( $_POST['easyio_ll_exclude'] ) ); 170 $_POST['easyio_allow_multisite_override'] = empty( $_POST['easyio_allow_multisite_override'] ) ? false : true; 171 \update_site_option( 'easyio_allow_multisite_override', $_POST['easyio_allow_multisite_override'] ); 172 $_POST['easyio_enable_help'] = empty( $_POST['easyio_enable_help'] ) ? false : true; 173 \update_site_option( 'easyio_enable_help', $_POST['easyio_enable_help'] ); 151 $easyio_debug = ( empty( $_POST['easyio_debug'] ) ? false : true ); 152 \update_site_option( 'easyio_debug', $easyio_debug ); 153 $easyio_metadata_remove = ( empty( $_POST['easyio_metadata_remove'] ) ? false : true ); 154 \update_site_option( 'easyio_metadata_remove', $easyio_metadata_remove ); 155 $exactdn_all_the_things = ( empty( $_POST['exactdn_all_the_things'] ) ? false : true ); 156 \update_site_option( 'exactdn_all_the_things', $exactdn_all_the_things ); 157 $exactdn_lossy = ( empty( $_POST['exactdn_lossy'] ) ? false : true ); 158 \update_site_option( 'exactdn_lossy', $exactdn_lossy ); 159 $exactdn_exclude = empty( $_POST['exactdn_exclude'] ) ? '' : sanitize_textarea_field( wp_unslash( $_POST['exactdn_exclude'] ) ); 160 \update_site_option( 'exactdn_exclude', $this->exclude_paths_sanitize( $exactdn_exclude ) ); 161 $easyio_add_missing_dims = ( empty( $_POST['easyio_add_missing_dims'] ) ? false : true ); 162 \update_site_option( 'easyio_add_missing_dims', $easyio_add_missing_dims ); 163 $easyio_lazy_load = ( empty( $_POST['easyio_lazy_load'] ) ? false : true ); 164 \update_site_option( 'easyio_lazy_load', $easyio_lazy_load ); 165 $easyio_use_lqip = ( empty( $_POST['easyio_use_lqip'] ) ? false : true ); 166 \update_site_option( 'easyio_use_lqip', $easyio_use_lqip ); 167 $easyio_ll_exclude = empty( $_POST['easyio_ll_exclude'] ) ? '' : sanitize_textarea_field( wp_unslash( $_POST['easyio_ll_exclude'] ) ); 168 \update_site_option( 'easyio_ll_exclude', $this->exclude_paths_sanitize( $easyio_ll_exclude ) ); 169 $easyio_allow_multisite_override = empty( $_POST['easyio_allow_multisite_override'] ) ? false : true; 170 \update_site_option( 'easyio_allow_multisite_override', $easyio_allow_multisite_override ); 171 $easyio_enable_help = empty( $_POST['easyio_enable_help'] ) ? false : true; 172 \update_site_option( 'easyio_enable_help', $easyio_enable_help ); 174 173 \add_action( 'network_admin_notices', 'easyio_network_settings_saved' ); 175 } elseif ( isset( $_POST['easyio_allow_multisite_override_active'] ) && \current_user_can( 'manage_network_options' ) && \wp_verify_nonce( $_REQUEST['_wpnonce'], 'easyio_options-options' ) ) {174 } elseif ( isset( $_POST['easyio_allow_multisite_override_active'] ) && \current_user_can( 'manage_network_options' ) && , 'easyio_options-options' ) ) { 176 175 $this->debug_message( 'network-wide settings, single-site overriding' ); 177 $ _POST['easyio_allow_multisite_override']= empty( $_POST['easyio_allow_multisite_override'] ) ? false : true;178 \update_site_option( 'easyio_allow_multisite_override', $ _POST['easyio_allow_multisite_override']);176 $ = empty( $_POST['easyio_allow_multisite_override'] ) ? false : true; 177 \update_site_option( 'easyio_allow_multisite_override', $ ); 179 178 \add_action( 'network_admin_notices', 'easyio_network_settings_saved' ); 180 179 } // End if(). -
easy-image-optimizer/trunk/easy-image-optimizer.php
r2963296 r2969931 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.5. 116 Version: 3.5. 17 17 Requires at least: 6.1 18 18 Requires PHP: 7.4 … … 29 29 add_action( 'network_admin_notices', 'easyio_unsupported_php' ); 30 30 add_action( 'admin_notices', 'easyio_unsupported_php' ); 31 } elseif ( empty( $_GET['easyio_disable']) ) {32 define( 'EASYIO_VERSION', 35 1);31 } elseif ( ) ) { 32 define( 'EASYIO_VERSION', 35 ); 33 33 34 34 /** -
easy-image-optimizer/trunk/phpcs.ruleset.xml
r2142075 r2969931 30 30 </properties> 31 31 </rule> 32 33 34 35 36 37 38 39 40 41 42 43 44 32 45 </ruleset> -
easy-image-optimizer/trunk/readme.txt
r2963296 r2969931 5 5 Tested up to: 6.3 6 6 Requires PHP: 7.4 7 Stable tag: 3.5. 17 Stable tag: 3.5. 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 59 63 60 64 = 3.5.1 = -
easy-image-optimizer/trunk/unique.php
r2963296 r2969931 73 73 } 74 74 $sendback = wp_get_referer(); 75 wp_ redirect( esc_url_raw( $sendback ) );75 wp_redirect( esc_url_raw( $sendback ) ); 76 76 exit( 0 ); 77 77 } … … 102 102 $buffer_start = false; 103 103 // If ExactDN is enabled. 104 if ( easyio_get_option( 'easyio_exactdn' ) && empty( $_GET['exactdn_disable']) ) {104 if ( easyio_get_option( 'easyio_exactdn' ) && ) ) { 105 105 $buffer_start = true; 106 106 /** … … 318 318 */ 319 319 function easyio_notice_inactive() { 320 $settings_url = esc_url( admin_url( 'options-general.php?page=easy-image-optimizer-options' ) );321 320 echo "<div id='easyio-inactive' class='notice notice-warning'><p>" . 322 "<a href='$settings_url'>". esc_html__( 'Please visit the settings page to complete activation of the Easy Image Optimizer.', 'easy-image-optimizer' ) . '</a></p></div>';321 . esc_html__( 'Please visit the settings page to complete activation of the Easy Image Optimizer.', 'easy-image-optimizer' ) . '</a></p></div>'; 323 322 } 324 323 … … 337 336 'https://docs.ewww.io/article/66-exactdn-not-verified' 338 337 ) . 339 '<br><code>' . $exactdn_activate_error. '</code>' .338 '<br><code>' . . '</code>' . 340 339 '</p></div>'; 341 340 } … … 713 712 */ 714 713 function easyio_network_options() { 715 $output = '';716 $output .= "<div class='wrap'>\n";717 718 714 $icon_link = plugins_url( '/images/easyio-toon-car.png', __FILE__ ); 719 $output .= "<img style='float:right;' src='$icon_link' />"; 720 721 $output .= "<h1>Easy Image Optimizer</h1>\n"; 722 $output .= '<p>' . esc_html__( 'The Easy Image Optimizer must be configured and activated on each individual site.', 'easy-image-optimizer' ) . '</p>'; 723 $output .= '</div>'; 724 echo $output; 715 ?> 716 <div class='wrap'> 717 <img style='float:right;' src='<?php esc_url( $icon_link ); ?>' /> 718 <h1>Easy Image Optimizer</h1> 719 <p><?php esc_html_e( 'The Easy Image Optimizer must be configured and activated on each individual site.', 'easy-image-optimizer' ); ?></p> 720 </div> 721 <?php 725 722 } 726 723 … … 1079 1076 Beacon( 'prefill', { 1080 1077 email: '<?php echo esc_js( $help_email ); ?>', 1081 text: '\n\n----------------------------------------\n<?php echo $hs_debug; ?>',1078 text: '\n\n----------------------------------------\n<?php echo ; ?>', 1082 1079 }); 1083 1080 </script>
Note: See TracChangeset
for help on using the changeset viewer.