Make WordPress Core


Ignore:
Timestamp:
12/21/2015 02:57:06 AM (9 years ago)
Author:
johnbillion
Message:

Comments: When a comment is submitted, ensure the user_ID element in the array that's passed to the preprocess_comment filter gets populated.

Merges [36038] to the 4.4 branch.

Fixes #34997

Location:
branches/4.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.4

  • branches/4.4/src/wp-includes/comment.php

    r35745 r36039  
    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.