Make WordPress Core


Ignore:
Timestamp:
12/21/2015 02:46:44 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.

Fixes #34997

File:
1 edited

Legend:

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

    r35948 r36038  
    27482748        $comment_author_email = $user->user_email;
    27492749        $comment_author_url   = $user->user_url;
    2750         $user_id              = $user->ID;
     2750        $user_ID              = $user->ID;
    27512751        if ( current_user_can( 'unfiltered_html' ) ) {
    27522752            if ( ! isset( $comment_data['_wp_unfiltered_html_comment'] )
     
    27852785        'comment_type',
    27862786        'comment_parent',
    2787         'user_id'
     2787        'user_ID'
    27882788    );
    27892789
Note: See TracChangeset for help on using the changeset viewer.