[wp-trac] [WordPress Trac] #55655: 6.0: Throw a _doing_it_wrong in register_block_pattern if not registered on `init` hook.
WordPress Trac
noreply at wordpress.org
Thu Feb 23 17:00:32 UTC 2023
#55655: 6.0: Throw a _doing_it_wrong in register_block_pattern if not registered on
`init` hook.
-------------------------------------+-------------------------------------
Reporter: johnstonphilip | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.2
Component: Editor | Version: 6.0
Severity: normal | Resolution:
Keywords: has-patch has-unit- | Focuses: administration, rest-
tests dev-feedback changes- | api, coding-standards
requested close |
-------------------------------------+-------------------------------------
Changes (by hellofromTonya):
* keywords: has-patch has-unit-tests dev-feedback changes-requested =>
has-patch has-unit-tests dev-feedback changes-requested close
Comment:
Correct me if I'm wrong, but reading the resolution of
https://github.com/WordPress/gutenberg/issues/40736, the fix implemented
was:
>A combination of https://github.com/WordPress/wordpress-develop/pull/2672
(Core) and https://github.com/WordPress/gutenberg/pull/40818 (Gutenberg)
should fix this.
[53404] / #55567 added tracking and handling of patterns registered
outside of `init` action via the `registered_patterns_outside_init`
property. Adding a `_doing_it_wrong()` would disable that change.
Thinking this ticket then is `close` as `wontfix`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55655#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list