Ticket #15580: comments.diff
File comments.diff, 1.6 KB (added by , 15 years ago) |
---|
-
wp-admin/edit-comments.php
206 206 <input type="text" id="comment-search-input" name="s" value="<?php _admin_search_query(); ?>" /> 207 207 <?php submit_button( __( 'Search Comments' ), 'button', 'submit', false ); ?> 208 208 </p> 209 <input type="hidden" name="mode" value="<?php echo esc_attr($mode); ?>" />210 209 <?php if ( $post_id ) : ?> 211 210 <input type="hidden" name="p" value="<?php echo esc_attr( intval( $post_id ) ); ?>" /> 212 211 <?php endif; ?> -
wp-admin/includes/class-wp-comments-list-table.php
21 21 var $pending_count = array(); 22 22 23 23 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') ) 29 25 add_filter( 'comment_author', 'floated_admin_avatar' ); 30 26 31 27 parent::WP_List_Table( array( … … 232 228 } 233 229 234 230 function get_columns() { 235 global $ mode;231 global $post_id; 236 232 237 233 $columns = array(); 238 234 … … 242 238 $columns['author'] = __( 'Author' ); 243 239 $columns['comment'] = _x( 'Comment', 'column name' ); 244 240 245 if ( 'single' !== $mode)241 if ( !$post_id ) 246 242 $columns['response'] = _x( 'In Response To', 'column name' ); 247 243 248 244 return $columns;