[wp-trac] [WordPress Trac] #37526: Introduce the possibility to register new administration panels
WordPress Trac
noreply at wordpress.org
Sat Jul 30 11:16:40 UTC 2016
#37526: Introduce the possibility to register new administration panels
-------------------------------------+------------------------------
Reporter: flixos90 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version:
Severity: normal | Resolution:
Keywords: 2nd-opinion needs-patch | Focuses: multisite
-------------------------------------+------------------------------
Comment (by flixos90):
I just noticed a severe problem in the first patch: It reversed the order
of the `admin_init` and `admin_menu` hooks which obviously we shouldn't
do. [attachment:37526.2.diff] fixes this:
* at the point of setting up the menu, the administration panels need to
be registered already; this makes it impossible to use `admin_init` for
it, so I introduced a new action `admin_setup` which runs a little earlier
* plugins must call `register_administration_panel()` from that new
`admin_setup` hook
The rest of the patch is similar to the first one, so the before comment
still applies to everything else.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37526#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list