Opened 10 years ago
Closed 9 years ago
#33418 closed enhancement (duplicate)
The main WP Admin Menu generator needs to be overhauled
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Administration | Keywords: | has-patch dev-feedback |
Focuses: | Cc: |
Description
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
.
Attachments (1)
Change History (10)
This ticket was mentioned in Slack in #core by sergey. View the logs.
10 years ago
#7
@
10 years ago
- Milestone changed from 4.4 to Awaiting Review
- Owner wonderboymusic deleted
I don't have the stomach for this right now. The impetus for doing it is to expose the data in a REST endpoint. 4.4 won't have endpoints. Even so, may not be super useful. We'll see later.
Interesting idea to build own admin.