[wp-trac] [WordPress Trac] #59551: Respect non-null values from the `pre_render_block` filter
WordPress Trac
noreply at wordpress.org
Tue Nov 14 01:52:56 UTC 2023
#59551: Respect non-null values from the `pre_render_block` filter
--------------------------+------------------------------
Reporter: danieliser | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 6.0
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by danieliser):
I concur that there is a possible side effect with script loading.
That likely requires changing how those things are handled from a hacked
filter to a proper action after render is decidedly going to happen.
That action likely should also include a filter for the scripts to be
loaded if I were wishing out loud.
Then you could not only overload the output of a block, but also filter
which scripts/styles would be loaded for it.
---
For the record we did just change our implementation to be higher priority
than `10`, but this is decidedly so a break from WP norms and the current
documented usage, which should be simple enough to address.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59551#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list