Make WordPress Core


Ignore:
Timestamp:
08/20/2010 11:18:41 AM (16 years ago)
Author:
scribu
Message:

Add the floated_admin_avatar filter from WP_Comments_Table. See #14637

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/default-list-tables.php

    r15509 r15512  
    19301930
    19311931        function WP_Comments_Table() {
     1932                global $mode;
     1933
     1934                $mode = ( empty( $_REQUEST['mode'] ) ) ? 'detail' : $_REQUEST['mode'];
     1935
     1936                if ( get_option('show_avatars') && 'single' != $mode )
     1937                        add_filter( 'comment_author', 'floated_admin_avatar' );
     1938
    19321939                parent::WP_List_Table( array(
    19331940                        'screen' => 'edit-comments',
    … …  
    19421949
    19431950        function prepare_items() {
    1944                 global $post_id, $comment_status, $mode, $search;
     1951                global $post_id, $comment_status, $search;
    19451952
    19461953                $post_id = isset( $_REQUEST['p'] ) ? absint( $_REQUEST['p'] ) : 0;
    1947 
    1948                 $mode = ( empty( $_REQUEST['mode'] ) ) ? 'detail' : $_REQUEST['mode'];
    19491954
    19501955                $comment_status = isset( $_REQUEST['comment_status'] ) ? $_REQUEST['comment_status'] : 'all';
Note: See TracChangeset for help on using the changeset viewer.