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:
parent
842c0927ef
commit
427e5aa3e5
|
@ -159,7 +159,7 @@ function enqueue_comment_hotkeys_js() {
|
||||||
wp_enqueue_script( 'jquery-table-hotkeys' );
|
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') )
|
if ( get_option('show_avatars') )
|
||||||
add_filter( 'comment_author', 'floated_admin_avatar' );
|
add_filter( 'comment_author', 'floated_admin_avatar' );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue