[wp-trac] [WordPress Trac] #17515: Flaw in add_meta_box/do_meta_boxes

WordPress Trac wp-trac at lists.automattic.com
Thu May 19 18:13:45 UTC 2011


#17515: Flaw in add_meta_box/do_meta_boxes
----------------------------+-----------------------------
 Reporter:  jfarthing84     |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:  3.1.2
 Severity:  normal          |   Keywords:  has-patch
----------------------------+-----------------------------
 There is a mysterious, undocumented 7th parameter in the add_meta_box()
 function, named $callback_args. This is to be an array of arguments that
 are passed into the callback function. The problem is that it the
 arguments are not passed into the callback function, but rather the whole
 $box object is instead. While I realize that one can access the arguments
 passed in via the $box object, I don't feel this is the proper method. I
 am attaching a patch to correctly pass the arguments.

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


More information about the wp-trac mailing list