wordpress-develop/tests/phpunit/data/themedir1/block-theme/templates
Tonya Mork 72178ec839 Editor: Fix get_block_templates() to get templates for a post type.
When a post type is passed to `get_block_templates()` in the query, return only the templates that match that post type.

Fixes an issue where:
* when a block template provided by a theme has been edited by the user
* and that template has specific defined `postTypes`
* but after editing, the template was available for all post types.

Follow-up to [52062].

Props aljullu, bernhard-reiter, hellofromTonya.
Fixes #55881.

git-svn-id: https://develop.svn.wordpress.org/trunk@54184 602fd350-edb4-49c9-b593-d223f7449a82
2022-09-15 22:26:28 +00:00
..
custom-single-post-template.html Editor: Fix get_block_templates() to get templates for a post type. 2022-09-15 22:26:28 +00:00
index.html Themes: Update the base folders for templates and template parts in block themes. 2021-11-25 10:57:19 +00:00
page-home.html Themes: Update the base folders for templates and template parts in block themes. 2021-11-25 10:57:19 +00:00
page.html Themes: Update the base folders for templates and template parts in block themes. 2021-11-25 10:57:19 +00:00