From 68af1abbe06a92fb3d977c51137ea9e33da0b1a9 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Thu, 19 Mar 2009 21:52:50 +0000 Subject: [PATCH] Fix notice when registering admin avatar filter. See #9366 props sivel git-svn-id: https://develop.svn.wordpress.org/trunk@10821 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/comment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/comment.php b/wp-admin/includes/comment.php index 9096da6308..fa9c8588c2 100644 --- a/wp-admin/includes/comment.php +++ b/wp-admin/includes/comment.php @@ -159,7 +159,7 @@ function enqueue_comment_hotkeys_js() { wp_enqueue_script( 'jquery-table-hotkeys' ); } -if ( is_admin() && ('edit-comments.php' == $pagenow || 'edit.php' == $pagenow) ) { +if ( is_admin() && isset($pagenow) && ('edit-comments.php' == $pagenow || 'edit.php' == $pagenow) ) { if ( get_option('show_avatars') ) add_filter( 'comment_author', 'floated_admin_avatar' ); }