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
This commit is contained in:
Rachel Baker 2015-12-31 19:21:28 +00:00
parent 4aa970e0e8
commit 2bdc6a5fd0
2 changed files with 6 additions and 4 deletions

View File

@ -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();

View File

@ -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.