Changeset 10222 for trunk/wp-admin/includes/template.php
- Timestamp:
- 12/18/2008 07:12:26 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r10182 r10222 2696 2696 * @param string $priority The priority within the context where the boxes should show ('high', 'low'). 2697 2697 */ 2698 function add_meta_box($id, $title, $callback, $page, $context = 'advanced', $priority = 'default' ) {2698 function add_meta_box($id, $title, $callback, $page, $context = 'advanced', $priority = 'default', $callback_args=null) { 2699 2699 global $wp_meta_boxes; 2700 2700 … … 2730 2730 $title = $wp_meta_boxes[$page][$a_context][$a_priority][$id]['title']; 2731 2731 $callback = $wp_meta_boxes[$page][$a_context][$a_priority][$id]['callback']; 2732 $callback_args = $wp_meta_boxes[$page][$a_context][$a_priority][$id]['args']; 2732 2733 } 2733 2734 // An id can be in only one priority and one context … … 2743 2744 $wp_meta_boxes[$page][$context][$priority] = array(); 2744 2745 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); 2746 2747 } 2747 2748
Note: See TracChangeset
for help on using the changeset viewer.