[wp-trac] [WordPress Trac] #33418: The main WP Admin Menu generator needs to be overhauled

WordPress Trac noreply at wordpress.org
Wed Aug 19 04:02:55 UTC 2015


#33418: The main WP Admin Menu generator needs to be overhauled
----------------------------+------------------------------------
 Reporter:  wonderboymusic  |      Owner:
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  4.4
Component:  Administration  |    Version:
 Severity:  normal          |   Keywords:  has-patch dev-feedback
  Focuses:                  |
----------------------------+------------------------------------
 Problem: I want to build my own admin with JS or an actual templating
 engine, how do I get the default menu data?

 `wp-admin/menu.php` is a maze of tuples, (ambiguous) globals,and
 uninitialized arrays. Not a lot is happening in this file, but you
 wouldn't know it because of how complicated it all looks. Also
 problematic: all of this code is top-level and inline, so it is not
 repeatable or portable.

 There are other pieces to this, but to start, I have overhauled the code
 in `wp-admin/menu.php` by encapsulating it in a class, `WP_Admin_Menu`.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33418>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list