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:
Ryan Boren 2008-03-26 03:31:27 +00:00
parent 35c126a10a
commit d99862c68d
1 changed files with 1 additions and 1 deletions

View File

@ -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";
}