Changeset 57608
- Timestamp:
- 02/13/2024 08:52:23 AM (10 months ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-theme.php
r57584 r57608 1975 1975 return false; 1976 1976 } 1977 $pattern_data = wp_cache_get( 'wp_theme_patterns_' . $this->stylesheet );1977 $pattern_data = wp_cache_get( 'wp_theme_patterns_' . $this->stylesheet, 'theme_files' ); 1978 1978 if ( is_array( $pattern_data ) && $pattern_data['version'] === $this->get( 'Version' ) ) { 1979 1979 return $pattern_data['patterns']; … … 1994 1994 'patterns' => $patterns, 1995 1995 ); 1996 wp_cache_set( 'wp_theme_patterns_' . $this->stylesheet, $pattern_data );1996 wp_cache_set( 'wp_theme_patterns_' . $this->stylesheet, $pattern_data, 'theme_files' ); 1997 1997 } 1998 1998 … … 2003 2003 */ 2004 2004 public function delete_pattern_cache() { 2005 wp_cache_delete( 'wp_theme_patterns_' . $this->stylesheet );2005 wp_cache_delete( 'wp_theme_patterns_' . $this->stylesheet, 'theme_files' ); 2006 2006 } 2007 2007 -
trunk/src/wp-includes/load.php
r57592 r57608 876 876 'site-queries', 877 877 'site-transient', 878 'theme_files', 878 879 'rss', 879 880 'users', -
trunk/src/wp-includes/ms-blogs.php
r57596 r57608 566 566 'site-queries', 567 567 'site-transient', 568 'theme_files', 568 569 'rss', 569 570 'users', … … 659 660 'site-queries', 660 661 'site-transient', 662 'theme_files', 661 663 'rss', 662 664 'users', -
trunk/src/wp-includes/theme.php
r57584 r57608 838 838 839 839 // Clear pattern caches. 840 $new_theme->delete_pattern_cache(); 841 $old_theme->delete_pattern_cache(); 840 if ( ! is_multisite() ) { 841 $new_theme->delete_pattern_cache(); 842 $old_theme->delete_pattern_cache(); 843 } 842 844 843 845 // Set autoload=no for the old theme, autoload=yes for the switched theme. -
trunk/tests/phpunit/includes/abstract-testcase.php
r57149 r57608 413 413 'site-queries', 414 414 'site-transient', 415 'theme_files', 415 416 'rss', 416 417 'users', -
trunk/tests/phpunit/tests/theme/wpThemeGetBlockPatterns.php
r56978 r57608 87 87 /** 88 88 * @ticket 59490 89 * @group ms-excluded 89 90 */ 90 91 public function test_should_clear_cache_after_switching_theme() {
Note: See TracChangeset
for help on using the changeset viewer.