From 6885730506455db09a7bbf19989a6ab549163968 Mon Sep 17 00:00:00 2001 From: Philip Arthur Moore Date: Sat, 23 Mar 2013 17:03:12 -0500 Subject: [PATCH] Make sure that the theme's style enqueue handles are properly prefixed. --- functions.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/functions.php b/functions.php index 0a09c406..5a966c51 100644 --- a/functions.php +++ b/functions.php @@ -129,18 +129,18 @@ add_action( 'widgets_init', '_s_widgets_init' ); * Enqueue scripts and styles */ function _s_scripts() { - wp_enqueue_style( 'style', get_stylesheet_uri() ); + wp_enqueue_style( '_s-style', get_stylesheet_uri() ); - wp_enqueue_script( 'navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20120206', true ); + wp_enqueue_script( '_s-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20120206', true ); - wp_enqueue_script( 'skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true ); + wp_enqueue_script( '_s-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } if ( is_singular() && wp_attachment_is_image() ) { - wp_enqueue_script( 'keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20120202' ); + wp_enqueue_script( '_s-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20120202' ); } } add_action( 'wp_enqueue_scripts', '_s_scripts' );