gutenberg_register_packages_scripts()
can only be run once
#18596
Labels
[Status] In Progress
Tracking issues with work in progress
[Tool] WP Scripts
/packages/scripts
[Type] Bug
An existing feature does not function as intended
[Type] Build Tooling
Issues or PRs related to build tooling
Describe the bug
If
gutenberg_register_packages_scripts()
is run more than once, the dependencies for any packages' scripts with a core handle are removed.The
require_once()
call will returntrue
on all but the first run ofgutenberg_register_packages_scripts()
, which will wipe out any dependencies.gutenberg/lib/client-assets.php
Lines 240 to 243 in 6fc0b70
Introduced in #17298.
To reproduce
Steps to reproduce the behavior:
a11y
has been included, but notdom-ready
.Expected behavior
gutenberg_register_packages_scripts()
should be able to be run more than once.Additional context
The text was updated successfully, but these errors were encountered: