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/src/wp-includes/default-filters.php

    r56714 r56757  
    532532
    533533// Block Theme Previews.
    534 add_action( 'plugins_loaded', 'initialize_theme_preview_hooks', 1 );
     534add_action( 'plugins_loaded', 'wp_initialize_theme_preview_hooks', 1 );
    535535
    536536// Calendar widget cache.
Note: See TracChangeset for help on using the changeset viewer.