From 35f17e4deaa89099ecea452525bae0c2a282886a Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 17 Apr 2008 19:20:15 +0000 Subject: [PATCH] Key meta box array by id. Props Denis-de-Bernardy. fixes #6192 for trunk git-svn-id: http://svn.automattic.com/wordpress/trunk@7719 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index f99e810ce0..34ff96a4c0 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -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) {