Add braces around single-line conditionals. See http://make.wordpress.org/core/2013/11/13/proposed-coding-standards-change-always-require-braces/.
This commit is contained in:
parent
aa0879e054
commit
6264437ff9
7 changed files with 27 additions and 14 deletions
|
@ -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' );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue