WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r35745 r36146  
    18061806
    18071807    // Only send notifications for approved comments.
    1808     if ( ! isset( $comment->comment_approved ) || 'spam' === $comment->comment_approved || ! $comment->comment_approved ) {
     1808    if ( ! isset( $comment->comment_approved ) || '1' != $comment->comment_approved ) {
    18091809        return false;
    18101810    }
     
    27512751        $comment_author_email = $user->user_email;
    27522752        $comment_author_url   = $user->user_url;
    2753         $user_id              = $user->ID;
     2753        $user_ID              = $user->ID;
    27542754        if ( current_user_can( 'unfiltered_html' ) ) {
    27552755            if ( ! isset( $comment_data['_wp_unfiltered_html_comment'] )
     
    27882788        'comment_type',
    27892789        'comment_parent',
    2790         'user_id'
     2790        'user_ID'
    27912791    );
    27922792
Note: See TracChangeset for help on using the changeset viewer.