WordPress.org

Make WordPress Core

Ticket #34493: 34493.patch

File 34493.patch, 692 bytes (added by imath, 5 years ago)
  • src/wp-includes/comment-functions.php

    diff --git src/wp-includes/comment-functions.php src/wp-includes/comment-functions.php
    index 6b055d1..ab51eb3 100644
    function wp_handle_comment_submission( $comment_data ) { 
    27422742                $comment_author       = $user->display_name;
    27432743                $comment_author_email = $user->user_email;
    27442744                $comment_author_url   = $user->user_url;
     2745                $user_ID              = $user->ID;
    27452746                if ( current_user_can( 'unfiltered_html' ) ) {
    27462747                        if ( ! isset( $comment_data['_wp_unfiltered_html_comment'] )
    27472748                                || ! wp_verify_nonce( $comment_data['_wp_unfiltered_html_comment'], 'unfiltered-html-comment_' . $comment_post_ID )