wordpress-develop/tests/phpunit/tests/blocks
Bernie Reiter a9bb470f8b Patterns: Inject theme attribute into Template Part blocks.
[56805] introduced a regression: The `theme` attribute was no longer injected into Template Part blocks inside of patterns. This caused errors on the frontend, where instead of a given template part, an error message such as `Template part has been deleted or is unavailable: header` was seen.

This changeset rectifies that problem, and adds unit test coverage to guard against future regressions.

Follow-up to [56805].
Props scruffian, gziolo.
Fixes #59583.

git-svn-id: https://develop.svn.wordpress.org/trunk@56818 602fd350-edb4-49c9-b593-d223f7449a82
2023-10-10 13:19:42 +00:00
..
editor.php Script Loader: Replace hardcoded output of style tags with calls to wp_add_inline_style. 2023-09-25 17:04:41 +00:00
getBlockAssetUrl.php Coding Standards: Fix a few newly introduced WPCS issues. 2023-09-26 00:07:56 +00:00
getBlockTemplates.php Tests: Reduce usage of assertEquals 2023-09-29 15:22:12 +00:00
getHookedBlocks.php Blocks: Call get_hooked_blocks only once per template/part/pattern. 2023-10-09 16:38:25 +00:00
register.php Tests: Add additional tests covering Block Hooks registration 2023-09-18 10:33:24 +00:00
registerCoreBlockStyleHandles.php Script Loader: Fix performance issues in wp_common_block_scripts_and_styles. 2023-06-27 11:26:12 +00:00
render.php Coding Standards: Remove superfluous blank lines at the end of various classes. 2023-09-08 09:30:38 +00:00
renderBlock.php Tests: Rename and improve the blocks/context.php file to follow handbook 2023-10-03 08:52:54 +00:00
renderCommentTemplate.php Coding Standards: Include one space after function keyword for closures. 2023-09-12 15:21:02 +00:00
renderReusable.php Tests: Second pass at merging file-level and class-level DocBlocks in various unit test files. 2023-03-03 14:42:42 +00:00
serialize.php Blocks: Add more unit test covering edge cases for Block Hooks 2023-09-26 08:07:07 +00:00
supportedStyles.php Editor: Lazily load Duotone settings only when needed. 2023-07-13 11:32:19 +00:00
wpBlock.php Coding Standards: Include one space after function keyword for closures. 2023-09-12 15:21:02 +00:00
wpBlockList.php Coding Standards: Use pre-increment/decrement for stand-alone statements. 2023-09-09 09:26:01 +00:00
wpBlockParser.php Tests: Second pass at merging file-level and class-level DocBlocks in various unit test files. 2023-03-03 14:42:42 +00:00
wpBlockPatternsRegistry.php Patterns: Inject theme attribute into Template Part blocks. 2023-10-10 13:19:42 +00:00
wpBlockType.php Tests: Second pass at merging file-level and class-level DocBlocks in various unit test files. 2023-03-03 14:42:42 +00:00
wpBlockTypeRegistry.php Tests: Second pass at merging file-level and class-level DocBlocks in various unit test files. 2023-03-03 14:42:42 +00:00
wpGetBlockPatterns.php Editor: Simplify return shape and logic of _wp_get_block_patterns(). 2023-10-03 18:17:03 +00:00