From 0ba2f26de970c785e753d29f013e4d47a3e0ca7f Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Tue, 28 Oct 2014 16:26:16 +0000 Subject: [PATCH] Twenty Fifteen: spacing and code style cleanup. See #30133. git-svn-id: https://develop.svn.wordpress.org/trunk@30045 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-content/themes/twentyfifteen/inc/customizer.php | 6 +++--- src/wp-content/themes/twentyfifteen/inc/template-tags.php | 6 +++--- .../themes/twentyfifteen/js/keyboard-image-navigation.js | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/wp-content/themes/twentyfifteen/inc/customizer.php b/src/wp-content/themes/twentyfifteen/inc/customizer.php index 4e4efa544a..3e48551895 100644 --- a/src/wp-content/themes/twentyfifteen/inc/customizer.php +++ b/src/wp-content/themes/twentyfifteen/inc/customizer.php @@ -159,10 +159,10 @@ function twentyfifteen_get_color_scheme() { $color_schemes = twentyfifteen_get_color_schemes(); if ( array_key_exists( $color_scheme_option, $color_schemes ) ) { - return $color_schemes[ $color_scheme_option ]['colors']; - } + return $color_schemes[$color_scheme_option]['colors']; + } - return $color_schemes[ 'default' ]['colors']; + return $color_schemes['default']['colors']; } endif; // twentyfifteen_get_color_scheme diff --git a/src/wp-content/themes/twentyfifteen/inc/template-tags.php b/src/wp-content/themes/twentyfifteen/inc/template-tags.php index a18a441961..56b89c9323 100644 --- a/src/wp-content/themes/twentyfifteen/inc/template-tags.php +++ b/src/wp-content/themes/twentyfifteen/inc/template-tags.php @@ -24,7 +24,7 @@ function twentyfifteen_paging_nav() { return; } - // Set up paginated links. + // Set up paginated links. $links = paginate_links( array( 'prev_text' => esc_html__( 'Previous', 'twentyfifteen' ), 'next_text' => esc_html__( 'Next', 'twentyfifteen' ), @@ -62,11 +62,11 @@ function twentyfifteen_post_nav() { $prev_class = $next_class = ''; if ( $previous && has_post_thumbnail( $previous->ID ) ) { - $prev_class = " has-post-thumbnail"; + $prev_class = ' has-post-thumbnail'; } if ( $next && has_post_thumbnail( $next->ID ) ) { - $next_class = " has-post-thumbnail"; + $next_class = ' has-post-thumbnail'; } ?> diff --git a/src/wp-content/themes/twentyfifteen/js/keyboard-image-navigation.js b/src/wp-content/themes/twentyfifteen/js/keyboard-image-navigation.js index 52d7f94380..c61ae5e33a 100644 --- a/src/wp-content/themes/twentyfifteen/js/keyboard-image-navigation.js +++ b/src/wp-content/themes/twentyfifteen/js/keyboard-image-navigation.js @@ -15,7 +15,7 @@ url = $( '.nav-next a' ).attr( 'href' ); } - if ( url && ( !$( 'textarea, input' ).is( ':focus' ) ) ) { + if ( url && ( ! $( 'textarea, input' ).is( ':focus' ) ) ) { window.location = url; } } );