From 4906d696deae5490779f68af0fc5d5cf8081f744 Mon Sep 17 00:00:00 2001 From: Ryan Boren 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: https://develop.svn.wordpress.org/trunk@7719 602fd350-edb4-49c9-b593-d223f7449a82 --- 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) {