Make WordPress Core

Changeset 38313


Ignore:
Timestamp:
08/22/2016 09:03:05 PM (8 years ago)
Author:
wonderboymusic
Message:

Comments: in wp_handle_comment_submission(), $_wp_unfiltered_html_comment is passed as part of $comment_data, but is not used locally.

See #37771.

File:
1 edited

Legend:

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

    r38121 r38313  
    27422742
    27432743    $comment_post_ID = $comment_parent = 0;
    2744     $comment_author = $comment_author_email = $comment_author_url = $comment_content = $_wp_unfiltered_html_comment = null;
     2744    $comment_author = $comment_author_email = $comment_author_url = $comment_content = null;
    27452745
    27462746    if ( isset( $comment_data['comment_post_ID'] ) ) {
     
    27612761    if ( isset( $comment_data['comment_parent'] ) ) {
    27622762        $comment_parent = absint( $comment_data['comment_parent'] );
    2763     }
    2764     if ( isset( $comment_data['_wp_unfiltered_html_comment'] ) && is_string( $comment_data['_wp_unfiltered_html_comment'] ) ) {
    2765         $_wp_unfiltered_html_comment = trim( $comment_data['_wp_unfiltered_html_comment'] );
    27662763    }
    27672764
Note: See TracChangeset for help on using the changeset viewer.