Make WordPress Core


Ignore:
Timestamp:
09/11/2015 05:55:27 AM (11 years ago)
Author:
wonderboymusic
Message:

After [34015], handle orphaned comments in the Dashboard comments widget. Pass full $comment versus just passing the comment ID when possible.

See #33710.

File:
1 edited

Legend:

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

    r33891 r34038  
    13631363
    13641364        $comment = get_comment( $comment_id );
    1365         if ( empty( $comment ) )
     1365        if ( empty( $comment ) || empty( $comment->comment_post_ID ) )
    13661366                return false;
    13671367
    … …  
    18221822         * @param WP_User    $user   The current user object.
    18231823         * @param string     $token  The user's session token.
    1824          */ 
     1824         */
    18251825        do_action( 'wp_verify_nonce_failed', $nonce, $action, $user, $token );
    18261826
Note: See TracChangeset for help on using the changeset viewer.