[wp-trac] [WordPress Trac] #55513: Allow registration of blocks containing scripts / styles that need to get enqueued from within a Theme
WordPress Trac
noreply at wordpress.org
Fri Apr 1 10:42:11 UTC 2022
#55513: Allow registration of blocks containing scripts / styles that need to get
enqueued from within a Theme
-------------------------+-----------------------------
Reporter: fabiankaegy | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
Currently, it is not possible to register a block from within a theme if
the block contains a `script`, `editorScript`, `viewScript`, etc. because
core assumes that a block must exist in a plugin. Which is and should
remain the best practice. But there are cases where registering blocks
within a theme makes sense and it would be great for that to also be
supported.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55513>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list