[wp-trac] [WordPress Trac] #55485: Clarify `wp_should_load_separate_core_block_assets()`, `block.json` script expectations
WordPress Trac
noreply at wordpress.org
Wed Oct 25 10:27:44 UTC 2023
#55485: Clarify `wp_should_load_separate_core_block_assets()`, `block.json` script
expectations
---------------------------+------------------------------
Reporter: jeremyfelt | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Script Loader | Version:
Severity: normal | Resolution:
Keywords: | Focuses: docs
---------------------------+------------------------------
Comment (by pentatonicfunk):
This filter should be default `true` IMO, i dont see any reason why non
block theme want it to be `false` by default, most of the times the block
styles/scripts only needed when its need to be rendered.
If theme ( or plugin ) needs the block styles/scripts when the block isn't
rendered, it most likely doing it wrong.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55485#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list