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

WordPress Trac noreply at wordpress.org
Sat Jul 30 11:37:31 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):

 Replying to [comment:3 ocean90]:
 > Just thinking out loud, instead of introducing a new global, can't this
 be part of `WP_Screen`?

 You mean as a static property? I'd definitely prefer to not use a global,
 but I'm not sure it fits into `WP_Screen`. The screen class holding the
 different administration panels would kind of be the wrong way around I
 think, as administration panels rather contain the screens.

 We might wanna introduce a new class `WP_Administration_Panel` - then we
 wouldn't need to use plain objects for the administration panels (they
 could be instances of that class), and the class could also contain the
 administration panels existing in a static property (to get rid of the
 global). Even the methods to register and get panels could be moved into
 that class as static methods. What do you think?

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


More information about the wp-trac mailing list