Key meta box array by id. Props Denis-de-Bernardy. fixes #6192 for trunk

git-svn-id: https://develop.svn.wordpress.org/trunk@7719 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-04-17 19:20:15 +00:00
parent 47ace19b61
commit 4906d696de
1 changed files with 1 additions and 1 deletions

View File

@ -1062,7 +1062,7 @@ function add_meta_box($id, $title, $callback, $page, $context = 'advanced') {
if ( !isset($wp_meta_boxes[$page][$context]) )
$wp_meta_boxes[$page][$context] = array();
$wp_meta_boxes[$page][$context][] = array('id' => $id, 'title' => $title, 'callback' => $callback);
$wp_meta_boxes[$page][$context][$id] = array('id' => $id, 'title' => $title, 'callback' => $callback);
}
function do_meta_boxes($page, $context, $object) {