Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…hat is_singular is true

git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@8937 d957f892-c61d-0410-b221-f235e6eecf30
  • Loading branch information...
commit 7aa2224a745454bb90cb9da70cfc036093bc78af 1 parent f3dc4c2
Ian Stewart ianstewart authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  functions.php
2  functions.php
View
@@ -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' );
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.