[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:04: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):

 I'm able to reproduce this on the `wp-admin/plugin-editor.php` page, with
 WP 6.0 beta 3 and Gutenberg 13.1.0.

 With Gutenberg plugin deactivated, the page loads scripts in the following
 order:
 1. `load-scripts.php` with `jquery-core`, `jquery-migrate` and others.
 2. the `wp-i18n` script.
 3. the `wp-common` script.

 The `wp-common` script depends on `wp-i18n`, which is loaded before it and
 things are fine.

 With Gutenberg activated, it changes to:
 1. `load-scripts.php` with `jquery-core` etc and newly also `common`!
 2. the `wp-i18n` script.

 The `wp-common` load has been moved into `load-scripts.php`, but `wp-i18n`
 wasn't, so `wp-common` loads first and fails.

 I don't know at this moment how scripts are or are not consolidated into
 the `load-script.php` loader and how the incorrect load is triggered.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55628#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list