mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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:
parent
21a4585cd1
commit
ea9451bd1c
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user