Make WordPress Core


Ignore:
Timestamp:
07/05/2022 02:57:52 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Themes: Register the block-templates theme feature.

This ensures the feature is included in the theme_supports REST API data for the active theme.

Follow-up to [48171].

Props grantmkin, TimothyBlynJacobs, addiestavlo.
Fixes #55681.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api/rest-themes-controller.php

    r52399 r53659  
    388388        $this->assertArrayHasKey( 'align-wide', $theme_supports );
    389389        $this->assertArrayHasKey( 'automatic-feed-links', $theme_supports );
     390        $this->assertArrayHasKey( 'block-templates', $theme_supports );
    390391        $this->assertArrayHasKey( 'custom-header', $theme_supports );
    391392        $this->assertArrayHasKey( 'custom-background', $theme_supports );
     
    406407        $this->assertArrayHasKey( 'title-tag', $theme_supports );
    407408        $this->assertArrayHasKey( 'wp-block-styles', $theme_supports );
    408         $this->assertCount( 20, $theme_supports );
     409        $this->assertCount( 21, $theme_supports );
    409410    }
    410411
Note: See TracChangeset for help on using the changeset viewer.