Skip to content

Commit ff7fd1e

Browse files
committed
Move hook to default-filters.php
1 parent 61a4715 commit ff7fd1e

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-includes/default-filters.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,7 @@
352352
add_action( 'after_switch_theme', '_wp_sidebars_changed' );
353353
add_action( 'wp_print_styles', 'print_emoji_styles' );
354354
add_action( 'plugins_loaded', '_wp_theme_json_webfonts_handler' );
355+
add_action( 'plugins_loaded', '_wp_add_non_persistent_theme_json_cache_group' );
355356

356357
if ( isset( $_GET['replytocom'] ) ) {
357358
add_filter( 'wp_robots', 'wp_robots_no_robots' );

src/wp-includes/global-styles-and-settings.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,4 +280,3 @@ function _wp_clean_theme_json_caches() {
280280
function _wp_add_non_persistent_theme_json_cache_group() {
281281
wp_cache_add_non_persistent_groups( 'theme_json' );
282282
}
283-
add_action( 'plugins_loaded', '_wp_add_non_persistent_theme_json_cache_group' );

0 commit comments

Comments
 (0)