[wp-trac] [WordPress Trac] #37526: Introduce the possibility to register new administration panels

WordPress Trac noreply at wordpress.org
Mon Sep 19 11:18:07 UTC 2016


#37526: Introduce the possibility to register new administration panels
-------------------------------------------------+-------------------------
 Reporter:  flixos90                             |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Administration                       |  Review
 Severity:  normal                               |     Version:
 Keywords:  2nd-opinion has-patch needs-unit-    |  Resolution:
  tests                                          |     Focuses:  multisite
-------------------------------------------------+-------------------------

Comment (by flixos90):

 [attachment:37526.4.diff] brings 4 improvements over the previous patch:

 * only define `WP_BLOG_ADMIN` as true in `wp-admin/admin.php` if it hasn't
 been defined before (and therefore define it as false in `wp-
 admin/network/admin.php` and `wp-admin/user/admin.php`)
 * only register the `network` and `user` administration panels if we're on
 a multisite
 * merge two almost similar checks in `WP_Administration_Panel::register()`
 into one
 * remove an incorrect `private` doc annotation for action hook in `wp-
 admin/includes/menu.php` (accidentally introduced in the previous patch)

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


More information about the wp-trac mailing list