Docs: Improve documentation for `add_meta_boxes` and `do_meta_boxes` actions.

Props danieltj, johnbillion, SergeyBiryukov.
Fixes #43229.
Built from https://develop.svn.wordpress.org/trunk@42796


git-svn-id: http://core.svn.wordpress.org/trunk@42626 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2018-03-08 03:57:31 +00:00
parent 24f43065b9
commit ef33f565b1
2 changed files with 9 additions and 6 deletions

View File

@ -357,8 +357,9 @@ if ( post_type_supports( $post_type, 'author' ) && current_user_can( $post_type_
*
* @since 3.0.0
*
* @param string $post_type Post type.
* @param WP_Post $post Post object.
* @param string $post_type Post type for posts, 'comment' for comments,
* 'link' for links.
* @param WP_Post|WP_Comment|object $post Post, comment, or link object.
*/
do_action( 'add_meta_boxes', $post_type, $post );
@ -380,9 +381,11 @@ do_action( "add_meta_boxes_{$post_type}", $post );
*
* @since 3.0.0
*
* @param string $post_type Post type of the post.
* @param string $context string Meta box context.
* @param WP_Post $post Post object.
* @param string $post_type Post type for posts, 'dashboard' for dashboard widgets,
* 'link' for links.
* @param string $context Meta box context. Accepts 'normal', 'advanced', 'side'.
* @param WP_Post|string|object $post Post object for posts, empty string for dashboard widgets,
* link object for links.
*/
do_action( 'do_meta_boxes', $post_type, 'normal', $post );
/** This action is documented in wp-admin/edit-form-advanced.php */

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.0-alpha-42795';
$wp_version = '5.0-alpha-42796';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.