[wp-trac] [WordPress Trac] #55628: Numerous console errors on Theme/Plugin File Editor screens and syntax highlighting not working
WordPress Trac
noreply at wordpress.org
Thu May 5 08:44:52 UTC 2022
#55628: Numerous console errors on Theme/Plugin File Editor screens and syntax
highlighting not working
---------------------------------------+-------------------------
Reporter: ndiego | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.0
Component: Script Loader | Version: trunk
Severity: normal | Resolution:
Keywords: needs-patch needs-testing | Focuses: javascript
---------------------------------------+-------------------------
Changes (by jsnajdr):
* keywords: needs-testing has-patch has-unit-tests => needs-patch needs-
testing
Comment:
So, I have two solutions for this issue:
The first one is a very simple one, perfectly suitable to be safely
shipped in 6.0 RC: https://github.com/WordPress/wordpress-
develop/pull/2678. It's an amendment to [52937], re-introducing the
concatenation opt-out condition.
The second one attempts to really fix a bug in `WP_Scripts`, where a
script could get loaded before its own dependencies, leading to errors:
https://github.com/WordPress/wordpress-develop/pull/2667. Unlike the
simple fix, which works only for scripts depending on `wp-i18n`, this one
works for all scripts. But it's a work-in-progress at this moment, not
suitable for 6.0.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55628#comment:25>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list