Plugin Directory

Changeset 3345179


Ignore:
Timestamp:
08/15/2025 01:59:24 PM (5 months ago)
Author:
boldgrid
Message:

Release 2.8.12, see readme.txt for the changelog.

Location:
w3-total-cache/tags/2.8.12
Files:
17 edited

Legend:

Unmodified
Added
Removed
  • w3-total-cache/tags/2.8.12/CacheFlush.php

    r3337525 r3345179  
    225225            $flushed = true;
    226226
    227             if ( Util_Environment::is_elementor() ){
     227            if ( Util_Environment::is_elementor() ) {
     228                // Flush Elementor's file manager cache.
    228229                \elementor\Plugin::$instance->files_manager->clear_cache();
     230
     231                // Flush W3 Total Cache's Object Cache to ensure Elementor changes are reflected.
     232                $this->objectcache_flush();
    229233            }
    230234
  • w3-total-cache/tags/2.8.12/Cache_File_Generic.php

    r3272823 r3345179  
    256256     */
    257257    private function _read( $path ) {
     258        // Canonicalize path to avoid unexpected variants.
     259        $path = realpath( $path );
     260
    258261        if ( ! is_readable( $path ) ) {
    259262            return null;
     
    262265        // make sure reading from cache folder canonicalize to avoid unexpected variants.
    263266        $base_path = realpath( $this->_cache_dir );
    264         $path      = realpath( $path );
    265267
    266268        if ( strlen( $base_path ) <= 0 || substr( $path, 0, strlen( $base_path ) ) !== $base_path ) {
  • w3-total-cache/tags/2.8.12/Cdn_Plugin.php

    r3337525 r3345179  
    111111     * @return void
    112112     *
    113      * @since 2.8.11
     113     * @since 2.8.12
    114114     */
    115115    public function send_headers() {
  • w3-total-cache/tags/2.8.12/DbCache_WpdbLegacy.php

    r3272823 r3345179  
    5656     * Constructor for initializing the DbCache_WpdbLegacy class.
    5757     *
    58      * @param array|null $processors Array of processors to initialize.
    59      *
    60      * @throws Exception If the processors parameter is invalid.
     58     * @param array $processors Array of processors to initialize.
     59     *
     60     * @throws \Exception If the processors parameter is invalid.
    6161     *
    6262     * @return void
    6363     */
    64     public function __construct( $processors = null ) {
     64    public function __construct( $processors = array() ) {
    6565        // required to initialize $use_mysqli which is private.
    6666        parent::__construct( '', '', '', '' );
     
    6868        // cant force empty parameter list due to wp requirements.
    6969        if ( ! is_array( $processors ) ) {
    70             throw new Exception( esc_html__( 'Called incorrectly, use instance().', 'w3-total-cache' ) );
     70            throw new \Exception( esc_html__( 'Called incorrectly, use instance().', 'w3-total-cache' ) );
    7171        }
    7272
     
    102102     * Modifies the footer comment for W3TC.
    103103     *
    104      * @param string $strings The footer comment strings.
    105      *
    106      * @return string Modified footer comment strings.
     104     * @param  array $strings The footer comment strings.
     105     * @return array Modified footer comment strings.
    107106     */
    108107    public function w3tc_footer_comment( $strings ) {
  • w3-total-cache/tags/2.8.12/DbCache_WpdbNew.php

    r3272823 r3345179  
    5656     * Initializes the DbCache_WpdbNew object.
    5757     *
    58      * @param array|null $processors List of processors for this object.
    59      *
    60      * @throws Exception If processors is not an array.
     58     * @param array $processors List of processors for this object.
     59     *
     60     * @throws \Exception If processors is not an array.
    6161     *
    6262     * @return void
    6363     */
    64     public function __construct( $processors = null ) {
     64    public function __construct( $processors = array() ) {
    6565        // required to initialize $use_mysqli which is private.
    6666        parent::__construct( '', '', '', '' );
     
    6868        // cant force empty parameter list due to wp requirements.
    6969        if ( ! is_array( $processors ) ) {
    70             throw new Exception( esc_html__( 'Called incorrectly, use instance().', 'w3-total-cache' ) );
     70            throw new \Exception( esc_html__( 'Called incorrectly, use instance().', 'w3-total-cache' ) );
    7171        }
    7272
     
    102102     * Adds footer comments for W3TC.
    103103     *
    104      * @param string $strings The footer strings to be modified.
    105      *
    106      * @return string Modified footer strings.
     104     * @param  array $strings The footer strings to be modified.
     105     * @return array Modified footer strings.
    107106     */
    108107    public function w3tc_footer_comment( $strings ) {
  • w3-total-cache/tags/2.8.12/Extension_FragmentCache_WpObjectCache.php

    r3272823 r3345179  
    593593     * Returns debug info
    594594     *
    595      * @param array $strings Strings.
    596      *
    597      * @return string
     595     * @param  array $strings Strings.
     596     * @return array
    598597     */
    599598    public function w3tc_footer_comment( $strings ) {
  • w3-total-cache/tags/2.8.12/ObjectCache_Plugin.php

    r3272823 r3345179  
    155155     * Adds a footer comment related to object cache to the strings.
    156156     *
    157      * @param string $strings Existing footer strings.
    158      *
    159      * @return string Modified footer strings.
     157     * @param  array $strings Existing footer strings.
     158     * @return array Modified footer strings.
    160159     */
    161160    public function w3tc_footer_comment( $strings ) {
  • w3-total-cache/tags/2.8.12/UserExperience_LazyLoad_Mutator.php

    r3272823 r3345179  
    297297        list( $match, $v1, $v2, $v, $quote ) = $matches;
    298298        $url_match                           = null;
    299         preg_match( '~background(-image)?:\s*(url\([^>]+\))~is', $v, $url_match );
    300         $v = preg_replace( '~background(-image)?:\s*url\([^>]+\)[;]?\s*~is', '', $v );
     299        preg_match( '~background(?:-image)?:\s*url\(([\"\']?)(.+?)\1\)~is', $v, $url_match );
     300        $v = preg_replace( '~background(?:-image)?:\s*url\(([\"\']?).+?\1\)[^;]*;?\s*~is', '', $v );
    301301
    302302        return $v1 . $v2 . $v . $quote . ' data-bg=' . $quote . ( isset( $url_match[2] ) ? $url_match[2] : '' ) . $quote;
  • w3-total-cache/tags/2.8.12/languages/w3-total-cache.pot

    r3337525 r3345179  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: W3 Total Cache 2.8.11\n"
     5"Project-Id-Version: W3 Total Cache 2.8.12\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/w3-total-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: 2025-07-31T23:05:45+00:00\n"
     12"POT-Creation-Date: 2025-08-15T13:58:17+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
     
    53115311
    53125312#. translators: 1 cache hits, 2 cache total, 3 engine name, 4 reject reason.
    5313 #: Extension_FragmentCache_WpObjectCache.php:604
     5313#: Extension_FragmentCache_WpObjectCache.php:603
    53145314#, php-format
    53155315msgid "Fragment Caching %1$d/%2$d fragments using %3$s%4$s"
    53165316msgstr ""
    53175317
    5318 #: Extension_FragmentCache_WpObjectCache.php:613
     5318#: Extension_FragmentCache_WpObjectCache.php:612
    53195319msgid "Fragment Cache debug info:"
    53205320msgstr ""
    53215321
    5322 #: Extension_FragmentCache_WpObjectCache.php:619
     5322#: Extension_FragmentCache_WpObjectCache.php:618
    53235323msgid "W3TC Fragment Cache info:"
    53245324msgstr ""
     
    66686668#: ObjectCache_ConfigLabels.php:27
    66696669#: ObjectCache_Plugin.php:147
    6670 #: ObjectCache_Plugin.php:213
    6671 #: ObjectCache_Plugin.php:221
    6672 #: ObjectCache_Plugin.php:230
     6670#: ObjectCache_Plugin.php:212
     6671#: ObjectCache_Plugin.php:220
     6672#: ObjectCache_Plugin.php:229
    66736673#: Root_AdminMenu.php:81
    66746674#: Root_AdminMenu.php:82
  • w3-total-cache/tags/2.8.12/readme.txt

    r3337525 r3345179  
    44Requires at least: 5.3
    55Tested up to: 6.8
    6 Stable tag: 2.8.11
     6Stable tag: 2.8.12
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    362362
    363363== Changelog ==
     364
     365= 2.8.12 =
     366* Fix: Lazy load background-image style handing
     367* Fix: Elementor: Also flush Object Cache after Page Cache is flushed
     368* Fix: Canonicalize Cache read path to avoid variants
    364369
    365370= 2.8.11 =
  • w3-total-cache/tags/2.8.12/vendor/composer/installed.json

    r3272823 r3345179  
    10031003        {
    10041004            "name": "sebastian/comparator",
    1005             "version": "3.0.5",
    1006             "version_normalized": "3.0.5.0",
     1005            "version": "3.0.6",
     1006            "version_normalized": "3.0.6.0",
    10071007            "source": {
    10081008                "type": "git",
    10091009                "url": "https://github.com/sebastianbergmann/comparator.git",
    1010                 "reference": "1dc7ceb4a24aede938c7af2a9ed1de09609ca770"
    1011             },
    1012             "dist": {
    1013                 "type": "zip",
    1014                 "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/1dc7ceb4a24aede938c7af2a9ed1de09609ca770",
    1015                 "reference": "1dc7ceb4a24aede938c7af2a9ed1de09609ca770",
     1010                "reference": "4b3c947888c81708b20fb081bb653a2ba68f989a"
     1011            },
     1012            "dist": {
     1013                "type": "zip",
     1014                "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/4b3c947888c81708b20fb081bb653a2ba68f989a",
     1015                "reference": "4b3c947888c81708b20fb081bb653a2ba68f989a",
    10161016                "shasum": ""
    10171017            },
     
    10241024                "phpunit/phpunit": "^8.5"
    10251025            },
    1026             "time": "2022-09-14T12:31:48+00:00",
     1026            "time": "2025-08-10T05:29:24+00:00",
    10271027            "type": "library",
    10281028            "extra": {
     
    10681068            "support": {
    10691069                "issues": "https://github.com/sebastianbergmann/comparator/issues",
    1070                 "source": "https://github.com/sebastianbergmann/comparator/tree/3.0.5"
     1070                "source": "https://github.com/sebastianbergmann/comparator/tree/3.0.6"
    10711071            },
    10721072            "funding": [
     
    10741074                    "url": "https://github.com/sebastianbergmann",
    10751075                    "type": "github"
     1076                },
     1077                {
     1078                    "url": "https://liberapay.com/sebastianbergmann",
     1079                    "type": "liberapay"
     1080                },
     1081                {
     1082                    "url": "https://thanks.dev/u/gh/sebastianbergmann",
     1083                    "type": "thanks_dev"
     1084                },
     1085                {
     1086                    "url": "https://tidelift.com/funding/github/packagist/sebastian/comparator",
     1087                    "type": "tidelift"
    10761088                }
    10771089            ],
     
    12291241        {
    12301242            "name": "sebastian/recursion-context",
    1231             "version": "3.0.2",
    1232             "version_normalized": "3.0.2.0",
     1243            "version": "3.0.3",
     1244            "version_normalized": "3.0.3.0",
    12331245            "source": {
    12341246                "type": "git",
    12351247                "url": "https://github.com/sebastianbergmann/recursion-context.git",
    1236                 "reference": "9bfd3c6f1f08c026f542032dfb42813544f7d64c"
    1237             },
    1238             "dist": {
    1239                 "type": "zip",
    1240                 "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/9bfd3c6f1f08c026f542032dfb42813544f7d64c",
    1241                 "reference": "9bfd3c6f1f08c026f542032dfb42813544f7d64c",
     1248                "reference": "8fe7e75986a9d24b4cceae847314035df7703a5a"
     1249            },
     1250            "dist": {
     1251                "type": "zip",
     1252                "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/8fe7e75986a9d24b4cceae847314035df7703a5a",
     1253                "reference": "8fe7e75986a9d24b4cceae847314035df7703a5a",
    12421254                "shasum": ""
    12431255            },
     
    12481260                "phpunit/phpunit": "^6.0"
    12491261            },
    1250             "time": "2024-03-01T14:07:30+00:00",
     1262            "time": "2025-08-10T05:25:53+00:00",
    12511263            "type": "library",
    12521264            "extra": {
     
    12831295            "support": {
    12841296                "issues": "https://github.com/sebastianbergmann/recursion-context/issues",
    1285                 "source": "https://github.com/sebastianbergmann/recursion-context/tree/3.0.2"
     1297                "source": "https://github.com/sebastianbergmann/recursion-context/tree/3.0.3"
    12861298            },
    12871299            "funding": [
     
    12891301                    "url": "https://github.com/sebastianbergmann",
    12901302                    "type": "github"
     1303                },
     1304                {
     1305                    "url": "https://liberapay.com/sebastianbergmann",
     1306                    "type": "liberapay"
     1307                },
     1308                {
     1309                    "url": "https://thanks.dev/u/gh/sebastianbergmann",
     1310                    "type": "thanks_dev"
     1311                },
     1312                {
     1313                    "url": "https://tidelift.com/funding/github/packagist/sebastian/recursion-context",
     1314                    "type": "tidelift"
    12911315                }
    12921316            ],
  • w3-total-cache/tags/2.8.12/vendor/composer/installed.php

    r3337525 r3345179  
    22    'root' => array(
    33        'name' => 'boldgrid/w3-total-cache',
    4         'pretty_version' => '2.8.11',
    5         'version' => '2.8.11.0',
    6         'reference' => 'd8d03ba1ca779c5f7527cc35300ef6da2ae5c751',
     4        'pretty_version' => '2.8.12',
     5        'version' => '2.8.12.0',
     6        'reference' => '446ee95666dbbc78caed18f1e0f0007e640df87f',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    3939        ),
    4040        'boldgrid/w3-total-cache' => array(
    41             'pretty_version' => '2.8.11',
    42             'version' => '2.8.11.0',
    43             'reference' => 'd8d03ba1ca779c5f7527cc35300ef6da2ae5c751',
     41            'pretty_version' => '2.8.12',
     42            'version' => '2.8.12.0',
     43            'reference' => '446ee95666dbbc78caed18f1e0f0007e640df87f',
    4444            'type' => 'wordpress-plugin',
    4545            'install_path' => __DIR__ . '/../../',
     
    165165        ),
    166166        'sebastian/comparator' => array(
    167             'pretty_version' => '3.0.5',
    168             'version' => '3.0.5.0',
    169             'reference' => '1dc7ceb4a24aede938c7af2a9ed1de09609ca770',
     167            'pretty_version' => '3.0.6',
     168            'version' => '3.0.6.0',
     169            'reference' => '4b3c947888c81708b20fb081bb653a2ba68f989a',
    170170            'type' => 'library',
    171171            'install_path' => __DIR__ . '/../sebastian/comparator',
     
    192192        ),
    193193        'sebastian/recursion-context' => array(
    194             'pretty_version' => '3.0.2',
    195             'version' => '3.0.2.0',
    196             'reference' => '9bfd3c6f1f08c026f542032dfb42813544f7d64c',
     194            'pretty_version' => '3.0.3',
     195            'version' => '3.0.3.0',
     196            'reference' => '8fe7e75986a9d24b4cceae847314035df7703a5a',
    197197            'type' => 'library',
    198198            'install_path' => __DIR__ . '/../sebastian/recursion-context',
  • w3-total-cache/tags/2.8.12/vendor/sebastian/comparator/ChangeLog.md

    r3104738 r3345179  
    22
    33All notable changes are documented in this file using the [Keep a CHANGELOG](http://keepachangelog.com/) principles.
     4
     5## [3.0.6] - 2025-08-10
     6
     7### Changed
     8
     9* Do not use `SplObjectStorage` methods that will be deprecated in PHP 8.5
    410
    511## [3.0.5] - 2022-09-14
     
    6975* Added support for `phpunit/phpunit-mock-objects` version `^5.0`
    7076
     77[3.0.6]: https://github.com/sebastianbergmann/comparator/compare/3.0.5...3.0.6
    7178[3.0.5]: https://github.com/sebastianbergmann/comparator/compare/3.0.4...3.0.5
    7279[3.0.4]: https://github.com/sebastianbergmann/comparator/compare/3.0.3...3.0.4
  • w3-total-cache/tags/2.8.12/vendor/sebastian/comparator/src/SplObjectStorageComparator.php

    r3104738 r3345179  
    4242    {
    4343        foreach ($actual as $object) {
    44             if (!$expected->contains($object)) {
     44            if (!$expected->offsetExists($object)) {
    4545                throw new ComparisonFailure(
    4646                    $expected,
     
    5555
    5656        foreach ($expected as $object) {
    57             if (!$actual->contains($object)) {
     57            if (!$actual->offsetExists($object)) {
    5858                throw new ComparisonFailure(
    5959                    $expected,
  • w3-total-cache/tags/2.8.12/vendor/sebastian/recursion-context/src/Context.php

    r3104738 r3345179  
    123123    private function addObject($object)
    124124    {
    125         if (!$this->objects->contains($object)) {
    126             $this->objects->attach($object);
     125        if (!$this->objects->offsetExists($object)) {
     126            $this->objects->offsetSet($object);
    127127        }
    128128
     
    149149    private function containsObject($value)
    150150    {
    151         if ($this->objects->contains($value)) {
     151        if ($this->objects->offsetExists($value)) {
    152152            return spl_object_hash($value);
    153153        }
  • w3-total-cache/tags/2.8.12/w3-total-cache-api.php

    r3337525 r3345179  
    1111
    1212define( 'W3TC', true );
    13 define( 'W3TC_VERSION', '2.8.11' );
     13define( 'W3TC_VERSION', '2.8.12' );
    1414define( 'W3TC_POWERED_BY', 'W3 Total Cache' );
    1515define( 'W3TC_EMAIL', 'w3tc@w3-edge.com' );
  • w3-total-cache/tags/2.8.12/w3-total-cache.php

    r3337525 r3345179  
    44 * Plugin URI:        https://www.boldgrid.com/totalcache/
    55 * Description:       The highest rated and most complete WordPress performance plugin. Dramatically improve the speed and user experience of your site. Add browser, page, object and database caching as well as minify and content delivery network (CDN) to WordPress.
    6  * Version:           2.8.11
     6 * Version:           2.8.12
    77 * Requires at least: 5.3
    88 * Requires PHP:      7.2.5
Note: See TracChangeset for help on using the changeset viewer.