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/admin-ajax.php

    r15508 r15512  
    633633                die('1');
    634634
    635         if ( get_option('show_avatars') )
    636                 add_filter( 'comment_author', 'floated_admin_avatar' );
    637 
    638635        $x = new WP_Ajax_Response();
    639636        foreach ( $table->items as $comment ) {
    … …  
    728725        $checkbox = ( isset($_POST['checkbox']) && true == $_POST['checkbox'] ) ? 1 : 0;
    729726
    730         if ( get_option('show_avatars') && 'single' != $mode )
    731                 add_filter( 'comment_author', 'floated_admin_avatar' );
    732 
    733727        $x = new WP_Ajax_Response();
    734728
    … …  
    770764        $checkbox = ( isset($_POST['checkbox']) && true == $_POST['checkbox'] ) ? 1 : 0;
    771765        $comments_listing = isset($_POST['comments_listing']) ? $_POST['comments_listing'] : '';
    772 
    773         if ( get_option('show_avatars') && 'single' != $mode )
    774                 add_filter( 'comment_author', 'floated_admin_avatar' );
    775766
    776767        require_once( './includes/default-list-tables.php' );
Note: See TracChangeset for help on using the changeset viewer.