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
This commit is contained in:
westi 2009-03-19 21:52:50 +00:00
parent 842c0927ef
commit 427e5aa3e5
1 changed files with 1 additions and 1 deletions

View File

@ -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' );
}