Plugin Directory

Changeset 2851060


Ignore:
Timestamp:
01/19/2023 12:50:06 PM (3 years ago)
Author:
poweredcache
Message:

Update to version 2.5.1 from GitHub

Location:
powered-cache
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • powered-cache/tags/2.5.1/includes/classes/LazyLoad.php

    r2851003 r2851060  
    1212use const PoweredCache\Constants\POST_META_DISABLE_LAZYLOAD_KEY;
    1313
     14// phpcs:disable WordPressVIPMinimum.Security.ProperEscapingFunction.hrefSrcEscUrl
     15
    1416/**
    1517 * Class LazyLoad
     
    296298
    297299                // 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 );
    299301
    300302                // also replace the srcset (responsive images)
     
    355357            }
    356358
    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="">';
    358360
    359361            $replace_html .= '<noscript>' . $iframe_html . '</noscript>';
  • powered-cache/tags/2.5.1/languages/powered-cache.pot

    r2851003 r2851060  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Powered Cache 2.5\n"
     5"Project-Id-Version: Powered Cache 2.5.1\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/powered-cache\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2023-01-19T11:21:23+00:00\n"
     12"POT-Creation-Date: 2023-01-19T12:45:05+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.6.0\n"
  • powered-cache/tags/2.5.1/powered-cache.php

    r2851003 r2851060  
    44 * Plugin URI:        https://poweredcache.com
    55 * 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
    77 * Requires at least: 5.7
    88 * Requires PHP:      5.6
     
    2626
    2727// Useful global constants.
    28 define( 'POWERED_CACHE_VERSION', '2.5' );
     28define( 'POWERED_CACHE_VERSION', '2.5.1' );
    2929define( 'POWERED_CACHE_DB_VERSION', '2.0' );
    3030define( 'POWERED_CACHE_PLUGIN_FILE', __FILE__ );
  • powered-cache/tags/2.5.1/readme.txt

    r2851003 r2851060  
    44Requires at least:  5.7
    55Tested up to:  6.1
    6 Stable tag:  2.5
     6Stable tag:  2.5.1
    77License: GPLv2 (or later)
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    169169
    170170== Changelog ==
     171
     172= 2.5.1 (January 19, 2023) =
     173- Fix a regression issue with the lazyload.
    171174
    172175= 2.5 (January 19, 2023) =
  • powered-cache/trunk/includes/classes/LazyLoad.php

    r2851003 r2851060  
    1212use const PoweredCache\Constants\POST_META_DISABLE_LAZYLOAD_KEY;
    1313
     14// phpcs:disable WordPressVIPMinimum.Security.ProperEscapingFunction.hrefSrcEscUrl
     15
    1416/**
    1517 * Class LazyLoad
     
    296298
    297299                // 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 );
    299301
    300302                // also replace the srcset (responsive images)
     
    355357            }
    356358
    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="">';
    358360
    359361            $replace_html .= '<noscript>' . $iframe_html . '</noscript>';
  • powered-cache/trunk/languages/powered-cache.pot

    r2851003 r2851060  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Powered Cache 2.5\n"
     5"Project-Id-Version: Powered Cache 2.5.1\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/powered-cache\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2023-01-19T11:21:23+00:00\n"
     12"POT-Creation-Date: 2023-01-19T12:45:05+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.6.0\n"
  • powered-cache/trunk/powered-cache.php

    r2851003 r2851060  
    44 * Plugin URI:        https://poweredcache.com
    55 * 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
    77 * Requires at least: 5.7
    88 * Requires PHP:      5.6
     
    2626
    2727// Useful global constants.
    28 define( 'POWERED_CACHE_VERSION', '2.5' );
     28define( 'POWERED_CACHE_VERSION', '2.5.1' );
    2929define( 'POWERED_CACHE_DB_VERSION', '2.0' );
    3030define( 'POWERED_CACHE_PLUGIN_FILE', __FILE__ );
  • powered-cache/trunk/readme.txt

    r2851003 r2851060  
    44Requires at least:  5.7
    55Tested up to:  6.1
    6 Stable tag:  2.5
     6Stable tag:  2.5.1
    77License: GPLv2 (or later)
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    169169
    170170== Changelog ==
     171
     172= 2.5.1 (January 19, 2023) =
     173- Fix a regression issue with the lazyload.
    171174
    172175= 2.5 (January 19, 2023) =
Note: See TracChangeset for help on using the changeset viewer.