Changeset 57010
- Timestamp:
- 10/26/2023 06:45:46 PM (12 months ago)
- Location:
- branches/6.4
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.4
-
branches/6.4/src/wp-includes/default-filters.php
r56932 r57010 522 522 // Theme. 523 523 add_action( 'setup_theme', 'create_initial_theme_features', 0 ); 524 add_action( ' setup_theme', '_add_default_theme_supports', 1 );524 add_action( 'after_setup_theme', '_add_default_theme_supports', 1 ); 525 525 add_action( 'wp_loaded', '_custom_header_background_just_in_time' ); 526 526 add_action( 'wp_head', '_custom_logo_header_styles' ); … … 719 719 add_action( 'wp_enqueue_scripts', 'wp_enqueue_block_template_skip_link' ); 720 720 add_action( 'wp_footer', 'the_block_template_skip_link' ); // Retained for backwards-compatibility. Unhooked by wp_enqueue_block_template_skip_link(). 721 add_action( ' setup_theme', 'wp_enable_block_templates');721 add_action( 'after_setup_theme', 'wp_enable_block_templates', 1 ); 722 722 add_action( 'wp_loaded', '_add_template_loader_filters' ); 723 723 -
branches/6.4/src/wp-includes/theme.php
r56765 r57010 4336 4336 4337 4337 /** 4338 * Adds default theme supports for block themes when the ' setup_theme' action fires.4339 * 4340 * See {@see ' setup_theme'}.4338 * Adds default theme supports for block themes when the 'after_setup_theme' action fires. 4339 * 4340 * See {@see 'after_setup_theme'}. 4341 4341 * 4342 4342 * @since 5.9.0 -
branches/6.4/tests/phpunit/tests/block-template.php
r56621 r57010 16 16 switch_theme( 'block-theme' ); 17 17 do_action( 'setup_theme' ); 18 do_action( 'after_setup_theme' ); 18 19 } 19 20 -
branches/6.4/tests/phpunit/tests/theme.php
r56986 r57010 747 747 * @ticket 54597 748 748 * @ticket 54731 749 * @ticket 59732 749 750 * 750 751 * @dataProvider data_block_theme_has_default_support … … 775 776 ); 776 777 777 do_action( ' setup_theme' );778 do_action( 'after_setup_theme' ); 778 779 779 780 $this->assertTrue( … … 859 860 * 860 861 * @ticket 54597 862 * @ticket 59732 861 863 * 862 864 * @covers ::_add_default_theme_supports … … 873 875 ); 874 876 875 do_action( ' setup_theme' );877 do_action( 'after_setup_theme' ); 876 878 877 879 $this->assertTrue(
Note: See TracChangeset
for help on using the changeset viewer.