[wp-trac] [WordPress Trac] #59383: Blocks: Introduce helper function to retrieve hooked blocks
WordPress Trac
noreply at wordpress.org
Mon Sep 25 10:56:44 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 | Focuses:
--------------------------------------+-----------------------
Comment (by gziolo):
Great catch @spacedmonkey.
Do you think we should also compute the result of processing all
registered blocks once and cache it? `get_hooked_blocks` is going to be
called multiple times on every page that is served using each theme
template shipped with the theme. It's something that we still need to
profile to understand better the implications.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59383#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list