Changeset 3345179
- Timestamp:
- 08/15/2025 01:59:24 PM (5 months ago)
- Location:
- w3-total-cache/tags/2.8.12
- Files:
-
- 17 edited
-
CacheFlush.php (modified) (1 diff)
-
Cache_File_Generic.php (modified) (2 diffs)
-
Cdn_Plugin.php (modified) (1 diff)
-
DbCache_WpdbLegacy.php (modified) (3 diffs)
-
DbCache_WpdbNew.php (modified) (3 diffs)
-
Extension_FragmentCache_WpObjectCache.php (modified) (1 diff)
-
ObjectCache_Plugin.php (modified) (1 diff)
-
UserExperience_LazyLoad_Mutator.php (modified) (1 diff)
-
languages/w3-total-cache.pot (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
-
vendor/composer/installed.json (modified) (8 diffs)
-
vendor/composer/installed.php (modified) (4 diffs)
-
vendor/sebastian/comparator/ChangeLog.md (modified) (2 diffs)
-
vendor/sebastian/comparator/src/SplObjectStorageComparator.php (modified) (2 diffs)
-
vendor/sebastian/recursion-context/src/Context.php (modified) (2 diffs)
-
w3-total-cache-api.php (modified) (1 diff)
-
w3-total-cache.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
w3-total-cache/tags/2.8.12/CacheFlush.php
r3337525 r3345179 225 225 $flushed = true; 226 226 227 if ( Util_Environment::is_elementor() ){ 227 if ( Util_Environment::is_elementor() ) { 228 // Flush Elementor's file manager cache. 228 229 \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(); 229 233 } 230 234 -
w3-total-cache/tags/2.8.12/Cache_File_Generic.php
r3272823 r3345179 256 256 */ 257 257 private function _read( $path ) { 258 // Canonicalize path to avoid unexpected variants. 259 $path = realpath( $path ); 260 258 261 if ( ! is_readable( $path ) ) { 259 262 return null; … … 262 265 // make sure reading from cache folder canonicalize to avoid unexpected variants. 263 266 $base_path = realpath( $this->_cache_dir ); 264 $path = realpath( $path );265 267 266 268 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 111 111 * @return void 112 112 * 113 * @since 2.8.1 1113 * @since 2.8.12 114 114 */ 115 115 public function send_headers() { -
w3-total-cache/tags/2.8.12/DbCache_WpdbLegacy.php
r3272823 r3345179 56 56 * Constructor for initializing the DbCache_WpdbLegacy class. 57 57 * 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. 61 61 * 62 62 * @return void 63 63 */ 64 public function __construct( $processors = null) {64 public function __construct( $processors = array() ) { 65 65 // required to initialize $use_mysqli which is private. 66 66 parent::__construct( '', '', '', '' ); … … 68 68 // cant force empty parameter list due to wp requirements. 69 69 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' ) ); 71 71 } 72 72 … … 102 102 * Modifies the footer comment for W3TC. 103 103 * 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. 107 106 */ 108 107 public function w3tc_footer_comment( $strings ) { -
w3-total-cache/tags/2.8.12/DbCache_WpdbNew.php
r3272823 r3345179 56 56 * Initializes the DbCache_WpdbNew object. 57 57 * 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. 61 61 * 62 62 * @return void 63 63 */ 64 public function __construct( $processors = null) {64 public function __construct( $processors = array() ) { 65 65 // required to initialize $use_mysqli which is private. 66 66 parent::__construct( '', '', '', '' ); … … 68 68 // cant force empty parameter list due to wp requirements. 69 69 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' ) ); 71 71 } 72 72 … … 102 102 * Adds footer comments for W3TC. 103 103 * 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. 107 106 */ 108 107 public function w3tc_footer_comment( $strings ) { -
w3-total-cache/tags/2.8.12/Extension_FragmentCache_WpObjectCache.php
r3272823 r3345179 593 593 * Returns debug info 594 594 * 595 * @param array $strings Strings. 596 * 597 * @return string 595 * @param array $strings Strings. 596 * @return array 598 597 */ 599 598 public function w3tc_footer_comment( $strings ) { -
w3-total-cache/tags/2.8.12/ObjectCache_Plugin.php
r3272823 r3345179 155 155 * Adds a footer comment related to object cache to the strings. 156 156 * 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. 160 159 */ 161 160 public function w3tc_footer_comment( $strings ) { -
w3-total-cache/tags/2.8.12/UserExperience_LazyLoad_Mutator.php
r3272823 r3345179 297 297 list( $match, $v1, $v2, $v, $quote ) = $matches; 298 298 $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 ); 301 301 302 302 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 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: W3 Total Cache 2.8.1 1\n"5 "Project-Id-Version: W3 Total Cache 2.8.12\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/w3-total-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: 2025-0 7-31T23:05:45+00:00\n"12 "POT-Creation-Date: 2025-08-15T13:58:17+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.12.0\n" … … 5311 5311 5312 5312 #. translators: 1 cache hits, 2 cache total, 3 engine name, 4 reject reason. 5313 #: Extension_FragmentCache_WpObjectCache.php:60 45313 #: Extension_FragmentCache_WpObjectCache.php:603 5314 5314 #, php-format 5315 5315 msgid "Fragment Caching %1$d/%2$d fragments using %3$s%4$s" 5316 5316 msgstr "" 5317 5317 5318 #: Extension_FragmentCache_WpObjectCache.php:61 35318 #: Extension_FragmentCache_WpObjectCache.php:612 5319 5319 msgid "Fragment Cache debug info:" 5320 5320 msgstr "" 5321 5321 5322 #: Extension_FragmentCache_WpObjectCache.php:61 95322 #: Extension_FragmentCache_WpObjectCache.php:618 5323 5323 msgid "W3TC Fragment Cache info:" 5324 5324 msgstr "" … … 6668 6668 #: ObjectCache_ConfigLabels.php:27 6669 6669 #: ObjectCache_Plugin.php:147 6670 #: ObjectCache_Plugin.php:21 36671 #: ObjectCache_Plugin.php:22 16672 #: ObjectCache_Plugin.php:2 306670 #: ObjectCache_Plugin.php:212 6671 #: ObjectCache_Plugin.php:220 6672 #: ObjectCache_Plugin.php:229 6673 6673 #: Root_AdminMenu.php:81 6674 6674 #: Root_AdminMenu.php:82 -
w3-total-cache/tags/2.8.12/readme.txt
r3337525 r3345179 4 4 Requires at least: 5.3 5 5 Tested up to: 6.8 6 Stable tag: 2.8.1 16 Stable tag: 2.8.12 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 362 362 363 363 == 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 364 369 365 370 = 2.8.11 = -
w3-total-cache/tags/2.8.12/vendor/composer/installed.json
r3272823 r3345179 1003 1003 { 1004 1004 "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", 1007 1007 "source": { 1008 1008 "type": "git", 1009 1009 "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", 1016 1016 "shasum": "" 1017 1017 }, … … 1024 1024 "phpunit/phpunit": "^8.5" 1025 1025 }, 1026 "time": "202 2-09-14T12:31:48+00:00",1026 "time": "2025-08-10T05:29:24+00:00", 1027 1027 "type": "library", 1028 1028 "extra": { … … 1068 1068 "support": { 1069 1069 "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" 1071 1071 }, 1072 1072 "funding": [ … … 1074 1074 "url": "https://github.com/sebastianbergmann", 1075 1075 "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" 1076 1088 } 1077 1089 ], … … 1229 1241 { 1230 1242 "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", 1233 1245 "source": { 1234 1246 "type": "git", 1235 1247 "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", 1242 1254 "shasum": "" 1243 1255 }, … … 1248 1260 "phpunit/phpunit": "^6.0" 1249 1261 }, 1250 "time": "202 4-03-01T14:07:30+00:00",1262 "time": "2025-08-10T05:25:53+00:00", 1251 1263 "type": "library", 1252 1264 "extra": { … … 1283 1295 "support": { 1284 1296 "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" 1286 1298 }, 1287 1299 "funding": [ … … 1289 1301 "url": "https://github.com/sebastianbergmann", 1290 1302 "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" 1291 1315 } 1292 1316 ], -
w3-total-cache/tags/2.8.12/vendor/composer/installed.php
r3337525 r3345179 2 2 'root' => array( 3 3 'name' => 'boldgrid/w3-total-cache', 4 'pretty_version' => '2.8.1 1',5 'version' => '2.8.1 1.0',6 'reference' => ' d8d03ba1ca779c5f7527cc35300ef6da2ae5c751',4 'pretty_version' => '2.8.12', 5 'version' => '2.8.12.0', 6 'reference' => '446ee95666dbbc78caed18f1e0f0007e640df87f', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 39 39 ), 40 40 'boldgrid/w3-total-cache' => array( 41 'pretty_version' => '2.8.1 1',42 'version' => '2.8.1 1.0',43 'reference' => ' d8d03ba1ca779c5f7527cc35300ef6da2ae5c751',41 'pretty_version' => '2.8.12', 42 'version' => '2.8.12.0', 43 'reference' => '446ee95666dbbc78caed18f1e0f0007e640df87f', 44 44 'type' => 'wordpress-plugin', 45 45 'install_path' => __DIR__ . '/../../', … … 165 165 ), 166 166 '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', 170 170 'type' => 'library', 171 171 'install_path' => __DIR__ . '/../sebastian/comparator', … … 192 192 ), 193 193 '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', 197 197 'type' => 'library', 198 198 'install_path' => __DIR__ . '/../sebastian/recursion-context', -
w3-total-cache/tags/2.8.12/vendor/sebastian/comparator/ChangeLog.md
r3104738 r3345179 2 2 3 3 All 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 4 10 5 11 ## [3.0.5] - 2022-09-14 … … 69 75 * Added support for `phpunit/phpunit-mock-objects` version `^5.0` 70 76 77 [3.0.6]: https://github.com/sebastianbergmann/comparator/compare/3.0.5...3.0.6 71 78 [3.0.5]: https://github.com/sebastianbergmann/comparator/compare/3.0.4...3.0.5 72 79 [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 42 42 { 43 43 foreach ($actual as $object) { 44 if (!$expected-> contains($object)) {44 if (!$expected->offsetExists($object)) { 45 45 throw new ComparisonFailure( 46 46 $expected, … … 55 55 56 56 foreach ($expected as $object) { 57 if (!$actual-> contains($object)) {57 if (!$actual->offsetExists($object)) { 58 58 throw new ComparisonFailure( 59 59 $expected, -
w3-total-cache/tags/2.8.12/vendor/sebastian/recursion-context/src/Context.php
r3104738 r3345179 123 123 private function addObject($object) 124 124 { 125 if (!$this->objects-> contains($object)) {126 $this->objects-> attach($object);125 if (!$this->objects->offsetExists($object)) { 126 $this->objects->offsetSet($object); 127 127 } 128 128 … … 149 149 private function containsObject($value) 150 150 { 151 if ($this->objects-> contains($value)) {151 if ($this->objects->offsetExists($value)) { 152 152 return spl_object_hash($value); 153 153 } -
w3-total-cache/tags/2.8.12/w3-total-cache-api.php
r3337525 r3345179 11 11 12 12 define( 'W3TC', true ); 13 define( 'W3TC_VERSION', '2.8.1 1' );13 define( 'W3TC_VERSION', '2.8.12' ); 14 14 define( 'W3TC_POWERED_BY', 'W3 Total Cache' ); 15 15 define( 'W3TC_EMAIL', 'w3tc@w3-edge.com' ); -
w3-total-cache/tags/2.8.12/w3-total-cache.php
r3337525 r3345179 4 4 * Plugin URI: https://www.boldgrid.com/totalcache/ 5 5 * 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.1 16 * Version: 2.8.12 7 7 * Requires at least: 5.3 8 8 * Requires PHP: 7.2.5
Note: See TracChangeset
for help on using the changeset viewer.