This commit is contained in:
Philip Arthur Moore 2013-11-14 19:49:50 +07:00
parent aa0879e054
commit 6264437ff9
7 changed files with 27 additions and 14 deletions

View file

@ -8,8 +8,9 @@
/**
* Set the content width based on the theme's design and stylesheet.
*/
if ( ! isset( $content_width ) )
if ( ! isset( $content_width ) ) {
$content_width = 640; /* pixels */
}
if ( ! function_exists( '_s_setup' ) ) :
/**
@ -81,8 +82,9 @@ function _s_scripts() {
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' ) )
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}
}
add_action( 'wp_enqueue_scripts', '_s_scripts' );