forked from mirror/_s
_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:
parent
f3dc4c227d
commit
7aa2224a74
|
@ -110,7 +110,7 @@ function _s_scripts() {
|
||||||
wp_enqueue_script( 'comment-reply' );
|
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' );
|
wp_enqueue_script( 'keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20120202' );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue