mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@56757 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -83,7 +83,7 @@ function wp_block_theme_activate_nonce() {
|
||||
*
|
||||
* @since 6.3.2
|
||||
*/
|
||||
function initialize_theme_preview_hooks() {
|
||||
function wp_initialize_theme_preview_hooks() {
|
||||
if ( ! empty( $_GET['wp_theme_preview'] ) ) {
|
||||
add_filter( 'stylesheet', 'wp_get_theme_preview_path' );
|
||||
add_filter( 'template', 'wp_get_theme_preview_path' );
|
||||
|
||||
Reference in New Issue
Block a user