[wp-trac] [WordPress Trac] #6316: No context for user_func called by
'do_meta_boxes'
WordPress Trac
wp-trac at lists.automattic.com
Thu Mar 20 19:30:11 GMT 2008
#6316: No context for user_func called by 'do_meta_boxes'
----------------------------+-----------------------------------------------
Reporter: henrikmelin | Owner: ryan
Type: defect | Status: new
Priority: normal | Milestone: 2.6
Component: Administration | Version: 2.5
Severity: normal | Keywords: meta-box admin
----------------------------+-----------------------------------------------
The user function specified in 'add_meta_box' has no context of what box
called it. Passing $box, in addition to $object to the user_func in the
function 'do_meta_boxes', would be really useful when populating boxes
programatically.
i.e.
call_user_func($box['callback'], $object);
to
call_user_func($box['callback'], $object, $box);
Thoughts?
Henrik.
--
Ticket URL: <http://trac.wordpress.org/ticket/6316>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list