Ticket #17515: 17515.diff
File 17515.diff, 1.3 KB (added by , 12 years ago) |
---|
-
wp-admin/includes/template.php
811 811 * @param string|object $screen Optional. The screen on which to show the box (post, page, link). Defaults to current screen. 812 812 * @param string $context Optional. The context within the page where the boxes should show ('normal', 'advanced'). 813 813 * @param string $priority Optional. The priority within the context where the boxes should show ('high', 'low'). 814 * @param array $callback_args Optional. Data that should be passed to the callback via the "args" property. 815 * In do_meta_boxes(), there is: call_user_func( $box['callback'], $object, $box ); ($box is an array, e.g $box['args']) 814 816 */ 815 817 function add_meta_box( $id, $title, $callback, $screen = null, $context = 'advanced', $priority = 'default', $callback_args = null ) { 816 818 global $wp_meta_boxes; … … 924 926 echo '<div class="handlediv" title="' . esc_attr__('Click to toggle') . '"><br /></div>'; 925 927 echo "<h3 class='hndle'><span>{$box['title']}</span></h3>\n"; 926 928 echo '<div class="inside">' . "\n"; 927 call_user_func( $box['callback'], $object, $box);929 call_user_func( $box['callback'], $object, $box ); 928 930 echo "</div>\n"; 929 931 echo "</div>\n"; 930 932 }