Make WordPress Core


Ignore:
Timestamp:
12/18/2008 07:12:26 PM (15 years ago)
Author:
ryan
Message:

Allow muliple tag-like taxonomies in the post editor. see #6387

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r10182 r10222  
    26962696 * @param string $priority The priority within the context where the boxes should show ('high', 'low').
    26972697 */
    2698 function add_meta_box($id, $title, $callback, $page, $context = 'advanced', $priority = 'default') {
     2698function add_meta_box($id, $title, $callback, $page, $context = 'advanced', $priority = 'default', $callback_args=null) {
    26992699    global $wp_meta_boxes;
    27002700
     
    27302730            $title = $wp_meta_boxes[$page][$a_context][$a_priority][$id]['title'];
    27312731            $callback = $wp_meta_boxes[$page][$a_context][$a_priority][$id]['callback'];
     2732            $callback_args = $wp_meta_boxes[$page][$a_context][$a_priority][$id]['args'];
    27322733        }
    27332734        // An id can be in only one priority and one context
     
    27432744        $wp_meta_boxes[$page][$context][$priority] = array();
    27442745
    2745     $wp_meta_boxes[$page][$context][$priority][$id] = array('id' => $id, 'title' => $title, 'callback' => $callback);
     2746    $wp_meta_boxes[$page][$context][$priority][$id] = array('id' => $id, 'title' => $title, 'callback' => $callback, 'args' => $callback_args);
    27462747}
    27472748
Note: See TracChangeset for help on using the changeset viewer.