Docs: Add null to post_id param type, fix syntax, and descriptions in the DocBlock for wp_update_comment_count().

See #32246.



git-svn-id: https://develop.svn.wordpress.org/trunk@36139 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Rachel Baker 2015-12-31 19:20:21 +00:00
parent 21a4585cd1
commit ea9451bd1c

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