Make WordPress Core


Ignore:
Timestamp:
06/30/2021 05:19:59 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve documentation for optional parameters in WP_Theme_JSON_Resolver methods per the documentation standards.

Move add_action() call to wp-includes/default-filters.php.

Follow-up to [50959], [51221].

See #52628, #53461.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-filters.php

    r51214 r51284  
    336336add_action( 'init', 'check_theme_switched', 99 );
    337337add_action( 'init', array( 'WP_Block_Supports', 'init' ), 22 );
     338add_action( 'switch_theme', array( 'WP_Theme_JSON_Resolver', 'clean_cached_data' ) );
    338339add_action( 'after_switch_theme', '_wp_menus_changed' );
    339340add_action( 'after_switch_theme', '_wp_sidebars_changed' );
Note: See TracChangeset for help on using the changeset viewer.