Pass box to add_meta_box() callback. Props henrikmelin. fixes #6316
git-svn-id: http://svn.automattic.com/wordpress/trunk@7514 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8895454664
commit
d25d202e72
|
@ -1067,7 +1067,7 @@ function do_meta_boxes($page, $context, $object) {
|
|||
echo '<div id="' . $box['id'] . '" class="postbox ' . postbox_classes($box['id'], $page) . '">' . "\n";
|
||||
echo "<h3>{$box['title']}</h3>\n";
|
||||
echo '<div class="inside">' . "\n";
|
||||
call_user_func($box['callback'], $object);
|
||||
call_user_func($box['callback'], $object, $box);
|
||||
echo "</div>\n";
|
||||
echo "</div>\n";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue