From f02161b05b6f6ae20946016ca4667061045b3fd9 Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Tue, 28 Oct 2014 16:27:19 +0000 Subject: [PATCH] Twenty Fifteen: spacing and code style cleanup. See #30133. Built from https://develop.svn.wordpress.org/trunk@30045 git-svn-id: http://core.svn.wordpress.org/trunk@30045 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyfifteen/inc/customizer.php | 6 +++--- wp-content/themes/twentyfifteen/inc/template-tags.php | 6 +++--- .../themes/twentyfifteen/js/keyboard-image-navigation.js | 2 +- wp-includes/version.php | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/wp-content/themes/twentyfifteen/inc/customizer.php b/wp-content/themes/twentyfifteen/inc/customizer.php index 4e4efa544a..3e48551895 100644 --- a/wp-content/themes/twentyfifteen/inc/customizer.php +++ b/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/wp-content/themes/twentyfifteen/inc/template-tags.php b/wp-content/themes/twentyfifteen/inc/template-tags.php index a18a441961..56b89c9323 100644 --- a/wp-content/themes/twentyfifteen/inc/template-tags.php +++ b/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/wp-content/themes/twentyfifteen/js/keyboard-image-navigation.js b/wp-content/themes/twentyfifteen/js/keyboard-image-navigation.js index 52d7f94380..c61ae5e33a 100644 --- a/wp-content/themes/twentyfifteen/js/keyboard-image-navigation.js +++ b/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; } } ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 2f45e3bc36..20b733f577 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.1-alpha-30044'; +$wp_version = '4.1-alpha-30045'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.