[wp-trac] [WordPress Trac] #59383: Blocks: Introduce helper function to retrieve hooked blocks
WordPress Trac
noreply at wordpress.org
Tue Sep 26 13:54:22 UTC 2023
#59383: Blocks: Introduce helper function to retrieve hooked blocks
-------------------------------------------------+-------------------------
Reporter: gziolo | Owner: gziolo
Type: enhancement | Status: reopened
Priority: normal | Milestone: 6.4
Component: Themes | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests needs-dev- | Focuses:
note gutenberg-merge |
-------------------------------------------------+-------------------------
Changes (by hellofromTonya):
* keywords: has-patch has-unit-tests 2nd-opinion needs-dev-note gutenberg-
merge => has-patch has-unit-tests needs-dev-note gutenberg-merge
Comment:
Replying to [comment:19 Bernhard Reiter]:
> @hellofromTonya FWIW, we've only recently introduced the term "Block
Hooks" to denote this new feature, and the related/"reverse" concept of
hooked blocks. I'm inclined to think that the name is obscure enough that
it hasn't sprung up elsewhere in this context or a different one (as
somewhat confirmed by your research).
>
> (My personal preference would be to omit the `wp_` prefix, but since I'm
the one who first suggested the function name, mine shouldn't probably
count as a second opinion :)
Thanks for Bernie for sharing the reasoning and preference. I'm okay with
the name as long as there are no naming conflicts that impact users. I'll
remove the `2nd-opinion` keyword with a disclaimer to keep a watchful eye
through the rest of the 6.4 cycle just in case there are reports of naming
issues.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59383#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list