WordPress.org

Make WordPress Core

Changeset 36115


Ignore:
Timestamp:
12/28/2015 10:57:37 PM (4 years ago)
Author:
rachelbaker
Message:

Comments: Return early from wp_update_comment_count() if there is not a valid post.

Props ambrosey, juanfra.
Fixes #34977

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/comment.php

    r36038 r36115  
    20112011    static $_deferred = array();
    20122012
     2013    if ( empty( $post_id ) && ! $do_deferred ) {
     2014        return false;
     2015    }
     2016
    20132017    if ( $do_deferred ) {
    20142018        $_deferred = array_unique($_deferred);
Note: See TracChangeset for help on using the changeset viewer.