wordpress-develop/tests/phpunit/data/themedir1/block-theme
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
..
blocks/example-block Editor: Allow registration of blocks that include assets from within a theme 2022-04-07 11:57:16 +00:00
parts Editor: Enable incomplete unit tests in Tests_Block_Template_Utils:: test_get_block_template_from_file(). 2021-12-03 16:57:19 +00:00
styles Tests: Increase coverage for translations applied to theme.json 2022-08-31 10:11:30 +00:00
templates Editor: Fix get_block_templates() to get templates for a post type. 2022-09-15 22:26:28 +00:00
functions.php Editor: Allow registration of blocks that include assets from within a theme 2022-04-07 11:57:16 +00:00
index.php Themes: Remove mention of “FSE” in Core. 2021-07-07 15:48:13 +00:00
page-1.php Themes: Add block template resolution algorithm unit tests. 2021-11-25 09:20:03 +00:00
style.css Themes: Remove mention of “FSE” in Core. 2021-07-07 15:48:13 +00:00
theme.json Editor: Fix get_block_templates() to get templates for a post type. 2022-09-15 22:26:28 +00:00