- Timestamp:
- 07/05/2022 02:57:52 PM (2 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme.php
r53513 r53659 3805 3805 * 3806 3806 * @since 5.5.0 3807 * @since 6.1.0 The `block-templates` feature was added. 3807 3808 */ 3808 3809 function create_initial_theme_features() { … … 3818 3819 array( 3819 3820 'description' => __( 'Whether posts and comments RSS feed links are added to head.' ), 3821 'show_in_rest' => true, 3822 ) 3823 ); 3824 register_theme_feature( 3825 'block-templates', 3826 array( 3827 'description' => __( 'Whether a theme uses block-based templates.' ), 3820 3828 'show_in_rest' => true, 3821 3829 ) -
trunk/tests/phpunit/tests/rest-api/rest-themes-controller.php
r52399 r53659 388 388 $this->assertArrayHasKey( 'align-wide', $theme_supports ); 389 389 $this->assertArrayHasKey( 'automatic-feed-links', $theme_supports ); 390 $this->assertArrayHasKey( 'block-templates', $theme_supports ); 390 391 $this->assertArrayHasKey( 'custom-header', $theme_supports ); 391 392 $this->assertArrayHasKey( 'custom-background', $theme_supports ); … … 406 407 $this->assertArrayHasKey( 'title-tag', $theme_supports ); 407 408 $this->assertArrayHasKey( 'wp-block-styles', $theme_supports ); 408 $this->assertCount( 2 0, $theme_supports );409 $this->assertCount( 21, $theme_supports ); 409 410 } 410 411
Note: See TracChangeset
for help on using the changeset viewer.