[wp-trac] [WordPress Trac] #17058: Wrong behavior when the dashboard menu is folded

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 7 16:31:28 UTC 2011


#17058: Wrong behavior when the dashboard menu is folded
----------------------------+------------------
 Reporter:  nuxwin          |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  3.2
Component:  Administration  |     Version:  3.1
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |
----------------------------+------------------

Comment (by azaozz):

 Replying to [comment:14 nuxwin]:
 > ...Now, when an admin page is loaded (at first time without any state
 data saved), the menu is defaulted folded. it's normal ? I say that
 because it 's not the case in current version.

 The menu that has current submenu gets the classes `wp-has-current-submenu
 wp-menu-open` set from PHP. That overrides the saved state.

 > Also, you can remove the following part... Since it's not longer needed
 with your changes.

 The comment there says it all :) It's unsafe to remove functions from
 WordPress, even JS functions. What if a plugin calls
 `adminMenu.restoreMenuState()` directly? It will throw a fatal error and
 probably break other JS.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17058#comment:15>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list