From ef33f565b1b17e451076f1d15ca4711f50cf71c3 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 8 Mar 2018 03:57:31 +0000 Subject: [PATCH] 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 --- wp-admin/edit-form-advanced.php | 13 ++++++++----- wp-includes/version.php | 2 +- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index f52a5aa288..9e1a33c09b 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -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 */ diff --git a/wp-includes/version.php b/wp-includes/version.php index 10711034f6..97ca65ab48 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.