Changeset 2851060
- Timestamp:
- 01/19/2023 12:50:06 PM (3 years ago)
- Location:
- powered-cache
- Files:
-
- 8 edited
- 1 copied
-
tags/2.5.1 (copied) (copied from powered-cache/trunk)
-
tags/2.5.1/includes/classes/LazyLoad.php (modified) (3 diffs)
-
tags/2.5.1/languages/powered-cache.pot (modified) (2 diffs)
-
tags/2.5.1/powered-cache.php (modified) (2 diffs)
-
tags/2.5.1/readme.txt (modified) (2 diffs)
-
trunk/includes/classes/LazyLoad.php (modified) (3 diffs)
-
trunk/languages/powered-cache.pot (modified) (2 diffs)
-
trunk/powered-cache.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
powered-cache/tags/2.5.1/includes/classes/LazyLoad.php
r2851003 r2851060 12 12 use const PoweredCache\Constants\POST_META_DISABLE_LAZYLOAD_KEY; 13 13 14 // phpcs:disable WordPressVIPMinimum.Security.ProperEscapingFunction.hrefSrcEscUrl 15 14 16 /** 15 17 * Class LazyLoad … … 296 298 297 299 // replace the src and add the data-src attribute 298 $replace_html = preg_replace( '/<img(.*?)src=/is', '<img$1src="' . esc_ url( $placeholder_url_used ) . '" data-lazy-type="image" data-lazy-src=', $img_html );300 $replace_html = preg_replace( '/<img(.*?)src=/is', '<img$1src="' . esc_attr( $placeholder_url_used ) . '" data-lazy-type="image" data-lazy-src=', $img_html ); 299 301 300 302 // also replace the srcset (responsive images) … … 355 357 } 356 358 357 $replace_html = '<img src="' . esc_ url( $placeholder_url ) . '" class="lazy lazy-hidden" data-lazy-type="iframe" data-lazy-src="' . esc_url( $iframe_html ) . '" alt="">';359 $replace_html = '<img src="' . esc_attr( $placeholder_url ) . '" class="lazy lazy-hidden" data-lazy-type="iframe" data-lazy-src="' . esc_attr( $iframe_html ) . '" alt="">'; 358 360 359 361 $replace_html .= '<noscript>' . $iframe_html . '</noscript>'; -
powered-cache/tags/2.5.1/languages/powered-cache.pot
r2851003 r2851060 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Powered Cache 2.5 \n"5 "Project-Id-Version: Powered Cache 2.5.1\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/powered-cache\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2023-01-19T1 1:21:23+00:00\n"12 "POT-Creation-Date: 2023-01-19T12:45:05+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.6.0\n" -
powered-cache/tags/2.5.1/powered-cache.php
r2851003 r2851060 4 4 * Plugin URI: https://poweredcache.com 5 5 * Description: The most powerful caching and performance suite for WordPress. Easily Improve PageSpeed & Web Vitals Score. 6 * Version: 2.5 6 * Version: 2.5.1 7 7 * Requires at least: 5.7 8 8 * Requires PHP: 5.6 … … 26 26 27 27 // Useful global constants. 28 define( 'POWERED_CACHE_VERSION', '2.5 ' );28 define( 'POWERED_CACHE_VERSION', '2.5.1' ); 29 29 define( 'POWERED_CACHE_DB_VERSION', '2.0' ); 30 30 define( 'POWERED_CACHE_PLUGIN_FILE', __FILE__ ); -
powered-cache/tags/2.5.1/readme.txt
r2851003 r2851060 4 4 Requires at least: 5.7 5 5 Tested up to: 6.1 6 Stable tag: 2.5 6 Stable tag: 2.5.1 7 7 License: GPLv2 (or later) 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 169 169 170 170 == Changelog == 171 172 = 2.5.1 (January 19, 2023) = 173 - Fix a regression issue with the lazyload. 171 174 172 175 = 2.5 (January 19, 2023) = -
powered-cache/trunk/includes/classes/LazyLoad.php
r2851003 r2851060 12 12 use const PoweredCache\Constants\POST_META_DISABLE_LAZYLOAD_KEY; 13 13 14 // phpcs:disable WordPressVIPMinimum.Security.ProperEscapingFunction.hrefSrcEscUrl 15 14 16 /** 15 17 * Class LazyLoad … … 296 298 297 299 // replace the src and add the data-src attribute 298 $replace_html = preg_replace( '/<img(.*?)src=/is', '<img$1src="' . esc_ url( $placeholder_url_used ) . '" data-lazy-type="image" data-lazy-src=', $img_html );300 $replace_html = preg_replace( '/<img(.*?)src=/is', '<img$1src="' . esc_attr( $placeholder_url_used ) . '" data-lazy-type="image" data-lazy-src=', $img_html ); 299 301 300 302 // also replace the srcset (responsive images) … … 355 357 } 356 358 357 $replace_html = '<img src="' . esc_ url( $placeholder_url ) . '" class="lazy lazy-hidden" data-lazy-type="iframe" data-lazy-src="' . esc_url( $iframe_html ) . '" alt="">';359 $replace_html = '<img src="' . esc_attr( $placeholder_url ) . '" class="lazy lazy-hidden" data-lazy-type="iframe" data-lazy-src="' . esc_attr( $iframe_html ) . '" alt="">'; 358 360 359 361 $replace_html .= '<noscript>' . $iframe_html . '</noscript>'; -
powered-cache/trunk/languages/powered-cache.pot
r2851003 r2851060 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Powered Cache 2.5 \n"5 "Project-Id-Version: Powered Cache 2.5.1\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/powered-cache\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2023-01-19T1 1:21:23+00:00\n"12 "POT-Creation-Date: 2023-01-19T12:45:05+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.6.0\n" -
powered-cache/trunk/powered-cache.php
r2851003 r2851060 4 4 * Plugin URI: https://poweredcache.com 5 5 * Description: The most powerful caching and performance suite for WordPress. Easily Improve PageSpeed & Web Vitals Score. 6 * Version: 2.5 6 * Version: 2.5.1 7 7 * Requires at least: 5.7 8 8 * Requires PHP: 5.6 … … 26 26 27 27 // Useful global constants. 28 define( 'POWERED_CACHE_VERSION', '2.5 ' );28 define( 'POWERED_CACHE_VERSION', '2.5.1' ); 29 29 define( 'POWERED_CACHE_DB_VERSION', '2.0' ); 30 30 define( 'POWERED_CACHE_PLUGIN_FILE', __FILE__ ); -
powered-cache/trunk/readme.txt
r2851003 r2851060 4 4 Requires at least: 5.7 5 5 Tested up to: 6.1 6 Stable tag: 2.5 6 Stable tag: 2.5.1 7 7 License: GPLv2 (or later) 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 169 169 170 170 == Changelog == 171 172 = 2.5.1 (January 19, 2023) = 173 - Fix a regression issue with the lazyload. 171 174 172 175 = 2.5 (January 19, 2023) =
Note: See TracChangeset
for help on using the changeset viewer.