From feb2267a13fd190b1c329d88c3b11c096a27501b Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Wed, 7 Oct 2015 16:34:24 +0000 Subject: [PATCH] Docs: Improve documentation for `post_submit_meta_box()`, which serves as the display callback for the 'Publish' meta box. * `$post` is now correctly defined as being of the `WP_Post` type * Adds a hash notation for the `$args` array * Other minor fixes. Props drebbitsweb. Fixes #34171. Built from https://develop.svn.wordpress.org/trunk@34911 git-svn-id: http://core.svn.wordpress.org/trunk@34876 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/meta-boxes.php | 14 +++++++++++--- wp-includes/version.php | 2 +- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/wp-admin/includes/meta-boxes.php b/wp-admin/includes/meta-boxes.php index ed477273ab..1115213730 100644 --- a/wp-admin/includes/meta-boxes.php +++ b/wp-admin/includes/meta-boxes.php @@ -3,15 +3,23 @@ // -- Post related Meta Boxes /** - * Display post submit form fields. + * Displays post submit form fields. * * @since 2.7.0 * * @global string $action * - * @param object $post + * @param WP_Post $post Current post object. + * @param array $args { + * Array of arguments for building the post submit meta box. + * + * @type string $id Meta box ID. + * @type string $title Meta box title. + * @type callable $callback Meta box display callback. + * @type array $args Extra meta box arguments. + * } */ -function post_submit_meta_box($post, $args = array() ) { +function post_submit_meta_box( $post, $args = array() ) { global $action; $post_type = $post->post_type; diff --git a/wp-includes/version.php b/wp-includes/version.php index 9edff8af2a..3bada3df63 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-34910'; +$wp_version = '4.4-alpha-34911'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.