From 427e5aa3e58d4b678e7bd175d55fb524a39411c1 Mon Sep 17 00:00:00 2001 From: westi 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: http://svn.automattic.com/wordpress/trunk@10821 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 9096da630..fa9c8588c 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' ); }