[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
Mon May 2 12:12:07 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
---------------------------------------+-------------------------
Comment (by jsnajdr):
Looking at this line where the `common` script is registered:
https://github.com/jsnajdr/wordpress-develop/blob/trunk/src/wp-includes
/script-loader.php#L687
It doesn't declare its dependency on the `wp-i18n` script, although it
should. Adding the missing dependency should fix the issue.
Another instance of this issue seems to be `wp-util.js` which uses Lodash
(`_.memoize`) but `_` is undefined. It declares `underscore` as
dependency, which is loaded inside `load-scripts.php`. Something goes
wrong there.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55628#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list