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:
ryan 2008-03-26 03:31:27 +00:00
parent 8895454664
commit d25d202e72
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";
}