From 7aa2224a745454bb90cb9da70cfc036093bc78af Mon Sep 17 00:00:00 2001 From: Ian Stewart Date: Tue, 14 Feb 2012 16:14:46 +0000 Subject: [PATCH] _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 --- functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.php b/functions.php index abda88c6..d3d34d21 100644 --- a/functions.php +++ b/functions.php @@ -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' ); } }