[wp-trac] [WordPress Trac] #12718: Better structure for admin $menu

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 30 05:02:56 UTC 2010


#12718: Better structure for admin $menu
-------------------------+--------------------------------------------------
 Reporter:  scribu       |       Owner:                 
     Type:  enhancement  |      Status:  assigned       
 Priority:  normal       |   Milestone:  Awaiting Triage
Component:  Plugins      |     Version:                 
 Severity:  normal       |    Keywords:                 
-------------------------+--------------------------------------------------

Comment(by mikeschinkel):

 Replying to [comment:20 scribu]:
 > These are the things that aren't supported in the antique version of
 PHP4:
 >
 >  * static method calls: {{{WP_AdminMenuSection::add($section,$args);}}}
 >  * access modifiers for methods or properties:
 >     * {{{private function add(...)}}}
 >     * {{{private $index;}}}

 Figures. Much of the work I did was rearchitect so I could use private.
 Ah well.

 New version up:

 https://gist.github.com/792b7aa5b695d1092520

  - Attempts to make PHP 4.x compatible by removing static and private
 functions and vars (though I can't test against v4.0)
  - Added hookname property to both section and item
  - Renamed property with list of items to be "items" instead of "submenus"

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12718#comment:21>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list