Make WordPress Core

Ticket #29704: 29704.diff

File 29704.diff, 684 bytes (added by nerrad, 11 years ago)

define $comment_type

  • src/wp-admin/includes/ajax-actions.php

    diff --git src/wp-admin/includes/ajax-actions.php src/wp-admin/includes/ajax-actions.php
    index ff2db70..3daf0fa 100644
    function wp_ajax_replyto_comment( $action ) { 
    936936                $comment_author_email = wp_slash( $user->user_email );
    937937                $comment_author_url   = wp_slash( $user->user_url );
    938938                $comment_content      = trim($_POST['content']);
     939                $comment_type = isset( $_POST['comment_type'] ) ? trim($_POST['comment_type']) : '';
    939940                if ( current_user_can( 'unfiltered_html' ) ) {
    940941                        if ( ! isset( $_POST['_wp_unfiltered_html_comment'] ) )
    941942                                $_POST['_wp_unfiltered_html_comment'] = '';