[wp-trac] [WordPress Trac] #57073: collapse menu not working on wp-admin/theme-editor.php or wp-admin/plugin-editor.php

WordPress Trac noreply at wordpress.org
Sat Jan 28 09:53:43 UTC 2023


#57073: collapse menu not working on wp-admin/theme-editor.php or wp-admin/plugin-
editor.php
----------------------------+-------------------------
 Reporter:  itsnikhilpatel  |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  6.2
Component:  Administration  |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:  javascript
----------------------------+-------------------------
Changes (by audrasjb):

 * version:  trunk =>
 * component:  General => Administration
 * milestone:  Awaiting Review => 6.2


Comment:

 Related: #56743.

 Indeed, this tickets needs to wait for #56743 to be committed.
 Then, this patch will fix the issue:

 script-loader.php:
 Replace
 {{{
 $scripts->add( 'wp-theme-plugin-editor', "/wp-admin/js/theme-plugin-
 editor$suffix.js", array( 'common', 'wp-util', 'wp-sanitize', 'jquery',
 'jquery-ui-core', 'wp-a11y', 'underscore' ) );
 }}}
 with
 {{{
 $scripts->add( 'wp-theme-plugin-editor', "/wp-admin/js/theme-plugin-
 editor$suffix.js", array( 'common', 'wp-util', 'wp-sanitize', 'jquery',
 'jquery-ui-core', 'wp-a11y', 'underscore' ), false, 1 );
 }}}

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


More information about the wp-trac mailing list