Make WordPress Core

Ticket #15580: comments.diff

File comments.diff, 1.6 KB (added by scribu, 15 years ago)

Removes 'In Reply To' column. Doesn't work for inline editing & replying

  • wp-admin/edit-comments.php

     
    206206        <input type="text" id="comment-search-input" name="s" value="<?php _admin_search_query(); ?>" />
    207207        <?php submit_button( __( 'Search Comments' ), 'button', 'submit', false ); ?>
    208208</p>
    209 <input type="hidden" name="mode" value="<?php echo esc_attr($mode); ?>" />
    210209<?php if ( $post_id ) : ?>
    211210<input type="hidden" name="p" value="<?php echo esc_attr( intval( $post_id ) ); ?>" />
    212211<?php endif; ?>
  • wp-admin/includes/class-wp-comments-list-table.php

     
    2121        var $pending_count = array();
    2222
    2323        function WP_Comments_List_Table() {
    24                 global $mode;
    25 
    26                 $mode = ( empty( $_REQUEST['mode'] ) ) ? 'detail' : $_REQUEST['mode'];
    27 
    28                 if ( get_option('show_avatars') && 'single' != $mode )
     24                if ( get_option('show_avatars') )
    2925                        add_filter( 'comment_author', 'floated_admin_avatar' );
    3026
    3127                parent::WP_List_Table( array(
     
    232228        }
    233229
    234230        function get_columns() {
    235                 global $mode;
     231                global $post_id;
    236232
    237233                $columns = array();
    238234
     
    242238                $columns['author'] = __( 'Author' );
    243239                $columns['comment'] = _x( 'Comment', 'column name' );
    244240
    245                 if ( 'single' !== $mode )
     241                if ( !$post_id )
    246242                        $columns['response'] = _x( 'In Response To', 'column name' );
    247243
    248244                return $columns;