Pass box to add_meta_box() callback. Props henrikmelin. fixes #6316
git-svn-id: https://develop.svn.wordpress.org/trunk@7514 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
35c126a10a
commit
d99862c68d
@ -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…
x
Reference in New Issue
Block a user