mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-07 08:01:54 +01:00
Docs: Normalize documentation spacing in the DocBlocks for add_meta_box()
and remove_meta_box()
following [34951].
Fixes #15000. Built from https://develop.svn.wordpress.org/trunk@34952 git-svn-id: http://core.svn.wordpress.org/trunk@34917 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6e4268e6fa
commit
a07cd8b386
@ -854,25 +854,25 @@ function wp_import_upload_form( $action ) {
|
||||
*
|
||||
* @global array $wp_meta_boxes
|
||||
*
|
||||
* @param string $id String for use in the 'id' attribute of tags.
|
||||
* @param string $title Title of the meta box.
|
||||
* @param callable $callback Function that fills the box with the desired content.
|
||||
* The function should echo its output.
|
||||
* @param string|array|WP_Screen $screen Optional. The screen or screens on which to show the box
|
||||
* (such as a post type, 'link', or 'comment'). Accepts a single
|
||||
* screen ID, WP_Screen object, or array of screen IDs. Default
|
||||
* is the current screen.
|
||||
* @param string $context Optional. The context within the screen where the boxes
|
||||
* should display. Available contexts vary from screen to
|
||||
* screen. Post edit screen contexts include 'normal', 'side',
|
||||
* and 'advanced'. Comments screen contexts include 'normal'
|
||||
* and 'side'. Menus meta boxes (accordion sections) all use
|
||||
* the 'side' context. Global default is 'advanced'.
|
||||
* @param string $priority Optional. The priority within the context where the boxes
|
||||
* should show ('high', 'low'). Default 'default'.
|
||||
* @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). Default null.
|
||||
* @param string $id Meta box ID (used in the 'id' attribute for the meta box).
|
||||
* @param string $title Title of the meta box.
|
||||
* @param callable $callback Function that fills the box with the desired content.
|
||||
* The function should echo its output.
|
||||
* @param string|array|WP_Screen $screen Optional. The screen or screens on which to show the box
|
||||
* (such as a post type, 'link', or 'comment'). Accepts a single
|
||||
* screen ID, WP_Screen object, or array of screen IDs. Default
|
||||
* is the current screen.
|
||||
* @param string $context Optional. The context within the screen where the boxes
|
||||
* should display. Available contexts vary from screen to
|
||||
* screen. Post edit screen contexts include 'normal', 'side',
|
||||
* and 'advanced'. Comments screen contexts include 'normal'
|
||||
* and 'side'. Menus meta boxes (accordion sections) all use
|
||||
* the 'side' context. Global default is 'advanced'.
|
||||
* @param string $priority Optional. The priority within the context where the boxes
|
||||
* should show ('high', 'low'). Default 'default'.
|
||||
* @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). Default null.
|
||||
*/
|
||||
function add_meta_box( $id, $title, $callback, $screen = null, $context = 'advanced', $priority = 'default', $callback_args = null ) {
|
||||
global $wp_meta_boxes;
|
||||
@ -1030,11 +1030,16 @@ function do_meta_boxes( $screen, $context, $object ) {
|
||||
*
|
||||
* @global array $wp_meta_boxes
|
||||
*
|
||||
* @param string $id String for use in the 'id' attribute of tags.
|
||||
* @param string|array|WP_Screen $screen The screen or screens on which the meta box is shown (such as a
|
||||
* post type, 'link', or 'comment'). Accepts a single screen ID,
|
||||
* WP_Screen object, or array of screen IDs.
|
||||
* @param string $context The context within the page where the boxes should show ('normal', 'advanced').
|
||||
* @param string $id Meta box ID (used in the 'id' attribute for the meta box).
|
||||
* @param string|array|WP_Screen $screen The screen or screens on which the meta box is shown (such as a
|
||||
* post type, 'link', or 'comment'). Accepts a single screen ID,
|
||||
* WP_Screen object, or array of screen IDs.
|
||||
* @param string $context Optional. The context within the screen where the boxes
|
||||
* should display. Available contexts vary from screen to
|
||||
* screen. Post edit screen contexts include 'normal', 'side',
|
||||
* and 'advanced'. Comments screen contexts include 'normal'
|
||||
* and 'side'. Menus meta boxes (accordion sections) all use
|
||||
* the 'side' context. Global default is 'advanced'.
|
||||
*/
|
||||
function remove_meta_box( $id, $screen, $context ) {
|
||||
global $wp_meta_boxes;
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.4-alpha-34951';
|
||||
$wp_version = '4.4-alpha-34952';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user