Make WordPress Core


Ignore:
Timestamp:
10/02/2023 10:40:36 PM (2 years ago)
Author:
danielbachhuber
Message:

Editor: Add function prefix to avoid conflicts.

Transforms initialize_theme_preview_hooks to wp_initialize_theme_preview_hooks to avoid conflicts with third-party code.

Follow up to [56529].

Props okat.
See #59000.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/theme-previews.php

    r56529 r56757  
    1818    public function test_initialize_theme_preview_hooks() {
    1919        $_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`.
    2121
    2222        $this->assertEquals( has_filter( 'stylesheet', 'wp_get_theme_preview_path' ), 10 );
Note: See TracChangeset for help on using the changeset viewer.