Make WordPress Core

Changeset 6883


Ignore:
Timestamp:
02/17/2008 01:57:58 AM (18 years ago)
Author:
ryan
Message:

Fix backend avatar display

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/comment.php

    r6868 r6883  
    8181}
    8282
    83 if ( '/wp-admin/edit-comments.php' == $_SERVER['PHP_SELF'] || '/wp-admin/moderation.php' == $_SERVER['PHP_SELF'] || '/wp-admin/edit.php' == $_SERVER['PHP_SELF'] ) {
     83if ( is_admin() && ('edit-comments.php' == $pagenow || 'moderation.php' == $pagenow || 'edit.php' == $pagenow) ) {
    8484    if ( get_option('show_avatars') )
    8585        add_filter( 'comment_author', 'floated_admin_avatar' );
Note: See TracChangeset for help on using the changeset viewer.