From 2bdc6a5fd0b90b28754d92a23d67772d463f3886 Mon Sep 17 00:00:00 2001 From: Rachel Baker Date: Thu, 31 Dec 2015 19:21:28 +0000 Subject: [PATCH] Docs: Add null to `post_id` param type, fix syntax, and descriptions in the DocBlock for `wp_update_comment_count()`. See #32246. Built from https://develop.svn.wordpress.org/trunk@36139 git-svn-id: http://core.svn.wordpress.org/trunk@36105 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment.php | 8 +++++--- wp-includes/version.php | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/wp-includes/comment.php b/wp-includes/comment.php index c6dd33d911..3354d2b72d 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -2003,9 +2003,11 @@ function wp_defer_comment_counting($defer=null) { * * @staticvar array $_deferred * - * @param int $post_id Post ID - * @param bool $do_deferred Whether to process previously deferred post comment counts - * @return bool|void True on success, false on failure + * @param int|null $post_id Post ID. + * @param bool $do_deferred Optional. Whether to process previously deferred + * post comment counts. Default false. + * @return bool|void True on success, false on failure or if post with ID does + * not exist. */ function wp_update_comment_count($post_id, $do_deferred=false) { static $_deferred = array(); diff --git a/wp-includes/version.php b/wp-includes/version.php index f1e0953ab0..6770f0526b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-alpha-36138'; +$wp_version = '4.5-alpha-36139'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.