_s: we shouldn't need to check if this is the admin here if we know that is_singular is true

git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@8937 d957f892-c61d-0410-b221-f235e6eecf30
This commit is contained in:
Ian Stewart 2012-02-14 16:14:46 +00:00
parent f3dc4c227d
commit 7aa2224a74
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ function _s_scripts() {
wp_enqueue_script( 'comment-reply' );
}
if ( is_singular() && wp_attachment_is_image( $post->ID ) && ! is_admin() ) {
if ( is_singular() && wp_attachment_is_image( $post->ID ) ) {
wp_enqueue_script( 'keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20120202' );
}
}