[wp-trac] [WordPress Trac] #13937: Pass list of arguments as array in add_meta_box()

WordPress Trac wp-trac at lists.automattic.com
Thu Jun 17 06:18:33 UTC 2010


#13937: Pass list of arguments as array in add_meta_box()
--------------------------+-------------------------------------------------
 Reporter:  scribu        |       Owner:           
     Type:  defect (bug)  |      Status:  new      
 Priority:  normal        |   Milestone:  3.1      
Component:  General       |     Version:           
 Severity:  minor         |    Keywords:  has-patch
--------------------------+-------------------------------------------------
 add_meta_box() currently takes 7 arguments!

 It should accept an associative array of arguments instead. Advantages:

  * more readable code
  * easier to deprecate arguments in the future

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13937>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list