Changeset 56757
- Timestamp:
- 10/02/2023 10:40:36 PM (13 months ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/default-filters.php
r56714 r56757 532 532 533 533 // Block Theme Previews. 534 add_action( 'plugins_loaded', ' initialize_theme_preview_hooks', 1 );534 add_action( 'plugins_loaded', 'wp_initialize_theme_preview_hooks', 1 ); 535 535 536 536 // Calendar widget cache. -
trunk/src/wp-includes/theme-previews.php
r56529 r56757 84 84 * @since 6.3.2 85 85 */ 86 function initialize_theme_preview_hooks() {86 function wp_initialize_theme_preview_hooks() { 87 87 if ( ! empty( $_GET['wp_theme_preview'] ) ) { 88 88 add_filter( 'stylesheet', 'wp_get_theme_preview_path' ); -
trunk/tests/phpunit/tests/theme-previews.php
r56529 r56757 18 18 public function test_initialize_theme_preview_hooks() { 19 19 $_GET['wp_theme_preview'] = 'twentytwentythree'; 20 do_action( 'plugins_loaded' ); // Ensure `plugins_loaded` triggers ` initialize_theme_preview_hooks`.20 do_action( 'plugins_loaded' ); // Ensure `plugins_loaded` triggers `wp_initialize_theme_preview_hooks`. 21 21 22 22 $this->assertEquals( has_filter( 'stylesheet', 'wp_get_theme_preview_path' ), 10 );
Note: See TracChangeset
for help on using the changeset viewer.