[wp-trac] [WordPress Trac] #61550: Template contents are wiped out on rename
WordPress Trac
noreply at wordpress.org
Tue Jul 2 17:56:01 UTC 2024
#61550: Template contents are wiped out on rename
--------------------------+------------------------------
Reporter: alshakero | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: trunk
Severity: minor | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------------------
Comment (by hellofromTonya):
>This stems from the callback
inject_ignored_hooked_blocks_metadata_attributes checking has_filter(
'hooked_block_types' ) and filtering the template content when this call
returns true. You can see the code
[https://github.com/WordPress/WordPress/blob/b048f2a05482d8dc5b9564a8404b1ca7dd8b515c
/wp-includes/block-template-utils.php#L1606 here].
This ticket identifies [58614] / #60854 as the possible change introducing
the issue. Pinging @bernhard-reiter for awareness.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61550#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list