Make WordPress Core

Ticket #26698: 26698.diff

File 26698.diff, 2.4 KB (added by DrewAPicture, 13 years ago)
  • src/wp-admin/includes/template.php

     
    802802 *
    803803 * @since 2.5.0
    804804 *
    805  * @param string $id String for use in the 'id' attribute of tags.
    806  * @param string $title Title of the meta box.
    807  * @param string $callback Function that fills the box with the desired content. The function should echo its output.
    808  * @param string|object $screen Optional. The screen on which to show the box (post, page, link). Defaults to current screen.
    809  * @param string $context Optional. The context within the page where the boxes should show ('normal', 'advanced').
    810  * @param string $priority Optional. The priority within the context where the boxes should show ('high', 'low').
    811  * @param array $callback_args Optional. Data that should be set as the "args" property of the box array (which is the second parameter passed to your callback).
     805 * @param string           $id            String for use in the 'id' attribute of tags.
     806 * @param string           $title         Title of the meta box.
     807 * @param string           $callback      Function that fills the box with the desired
     808 *                                        content. The function should echo its output.
     809 * @param string|WP_Screen $screen        Optional. The screen on which to show the box
     810 *                                        (post, page, link). Default is the current screen.
     811 * @param string           $context       Optional. The context within the page where the
     812 *                                        boxes should show ('normal', 'advanced', 'side').
     813 *                                        Default 'advanced'.
     814 * @param string           $priority      Optional. The priority within the context where
     815 *                                        the boxes should show ('high', 'low').
     816 *                                        Default 'default'.
     817 * @param array            $callback_args Optional. Data that should be set as the $args
     818 *                                        property of the box array (which is the second
     819 *                                        parameter passed to your callback). Default null.
    812820 */
    813821function add_meta_box( $id, $title, $callback, $screen = null, $context = 'advanced', $priority = 'default', $callback_args = null ) {
    814822        global $wp_meta_boxes;