Make WordPress Core


Ignore:
Timestamp:
07/02/2021 07:01:22 PM (2 years ago)
Author:
desrosj
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].

Props SergeyBiryukov.
Merges [51284] to the 5.8 branch.
See #52628, #53461.

Location:
branches/5.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.8

  • branches/5.8/src/wp-includes/default-filters.php

    r51214 r51315  
    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.