Make WordPress Core


Ignore:
Timestamp:
10/02/2023 10:40:36 PM (14 months 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/src/wp-includes/theme-previews.php

    r56529 r56757  
    8484 * @since 6.3.2
    8585 */
    86 function initialize_theme_preview_hooks() {
     86function wp_initialize_theme_preview_hooks() {
    8787    if ( ! empty( $_GET['wp_theme_preview'] ) ) {
    8888        add_filter( 'stylesheet', 'wp_get_theme_preview_path' );
Note: See TracChangeset for help on using the changeset viewer.