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
This commit is contained in:
parent
26fd2097a0
commit
35f17e4dea
|
@ -1062,7 +1062,7 @@ function add_meta_box($id, $title, $callback, $page, $context = 'advanced') {
|
||||||
if ( !isset($wp_meta_boxes[$page][$context]) )
|
if ( !isset($wp_meta_boxes[$page][$context]) )
|
||||||
$wp_meta_boxes[$page][$context] = array();
|
$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) {
|
function do_meta_boxes($page, $context, $object) {
|
||||||
|
|
Loading…
Reference in New Issue