Completed
Push — master ( a7cd2a...eabd6c )
by Stephen
38:42
created
src/wp-content/themes/twentyfifteen/image.php 2 patches
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -14,19 +14,19 @@  discard block
 block discarded – undo
14 14
 
15 15
 			<?php
16 16
 				// Start the loop.
17
-				while ( have_posts() ) : the_post();
17
+				while (have_posts()) : the_post();
18 18
 			?>
19 19
 
20 20
 				<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
21 21
 
22 22
 					<nav id="image-navigation" class="navigation image-navigation">
23 23
 						<div class="nav-links">
24
-							<div class="nav-previous"><?php previous_image_link( false, __( 'Previous Image', 'twentyfifteen' ) ); ?></div><div class="nav-next"><?php next_image_link( false, __( 'Next Image', 'twentyfifteen' ) ); ?></div>
24
+							<div class="nav-previous"><?php previous_image_link(false, __('Previous Image', 'twentyfifteen')); ?></div><div class="nav-next"><?php next_image_link(false, __('Next Image', 'twentyfifteen')); ?></div>
25 25
 						</div><!-- .nav-links -->
26 26
 					</nav><!-- .image-navigation -->
27 27
 
28 28
 					<header class="entry-header">
29
-						<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
29
+						<?php the_title('<h1 class="entry-title">', '</h1>'); ?>
30 30
 					</header><!-- .entry-header -->
31 31
 
32 32
 					<div class="entry-content">
@@ -40,12 +40,12 @@  discard block
 block discarded – undo
40 40
 								 *
41 41
 								 * @param string $image_size Image size. Default 'large'.
42 42
 								 */
43
-								$image_size = apply_filters( 'twentyfifteen_attachment_size', 'large' );
43
+								$image_size = apply_filters('twentyfifteen_attachment_size', 'large');
44 44
 
45
-								echo wp_get_attachment_image( get_the_ID(), $image_size );
45
+								echo wp_get_attachment_image(get_the_ID(), $image_size);
46 46
 							?>
47 47
 
48
-							<?php if ( has_excerpt() ) : ?>
48
+							<?php if (has_excerpt()) : ?>
49 49
 								<div class="entry-caption">
50 50
 									<?php the_excerpt(); ?>
51 51
 								</div><!-- .entry-caption -->
@@ -55,34 +55,34 @@  discard block
 block discarded – undo
55 55
 
56 56
 						<?php
57 57
 							the_content();
58
-							wp_link_pages( array(
59
-								'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfifteen' ) . '</span>',
58
+							wp_link_pages(array(
59
+								'before'      => '<div class="page-links"><span class="page-links-title">'.__('Pages:', 'twentyfifteen').'</span>',
60 60
 								'after'       => '</div>',
61 61
 								'link_before' => '<span>',
62 62
 								'link_after'  => '</span>',
63
-								'pagelink'    => '<span class="screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>%',
63
+								'pagelink'    => '<span class="screen-reader-text">'.__('Page', 'twentyfifteen').' </span>%',
64 64
 								'separator'   => '<span class="screen-reader-text">, </span>',
65
-							) );
65
+							));
66 66
 						?>
67 67
 					</div><!-- .entry-content -->
68 68
 
69 69
 					<footer class="entry-footer">
70 70
 						<?php twentyfifteen_entry_meta(); ?>
71
-						<?php edit_post_link( __( 'Edit', 'twentyfifteen' ), '<span class="edit-link">', '</span>' ); ?>
71
+						<?php edit_post_link(__('Edit', 'twentyfifteen'), '<span class="edit-link">', '</span>'); ?>
72 72
 					</footer><!-- .entry-footer -->
73 73
 
74 74
 				</article><!-- #post-## -->
75 75
 
76 76
 				<?php
77 77
 					// If comments are open or we have at least one comment, load up the comment template
78
-					if ( comments_open() || get_comments_number() ) :
78
+					if (comments_open() || get_comments_number()) :
79 79
 						comments_template();
80 80
 					endif;
81 81
 
82 82
 					// Previous/next post navigation.
83
-					the_post_navigation( array(
84
-						'prev_text' => _x( '<span class="meta-nav">Published in</span><span class="post-title">%title</span>', 'Parent post link', 'twentyfifteen' ),
85
-					) );
83
+					the_post_navigation(array(
84
+						'prev_text' => _x('<span class="meta-nav">Published in</span><span class="post-title">%title</span>', 'Parent post link', 'twentyfifteen'),
85
+					));
86 86
 
87 87
 				// End the loop.
88 88
 				endwhile;
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The template for displaying image attachments
4
- *
5
- * @package WordPress
6
- * @subpackage Twenty_Fifteen
7
- * @since Twenty Fifteen 1.0
8
- */
3
+		 * The template for displaying image attachments
4
+		 *
5
+		 * @package WordPress
6
+		 * @subpackage Twenty_Fifteen
7
+		 * @since Twenty Fifteen 1.0
8
+		 */
9 9
 
10 10
 get_header(); ?>
11 11
 
Please login to merge, or discard this patch.
src/wp-content/themes/twentyfifteen/header.php 3 patches
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -11,36 +11,36 @@
 block discarded – undo
11 11
 ?><!DOCTYPE html>
12 12
 <html <?php language_attributes(); ?> class="no-js">
13 13
 <head>
14
-	<meta charset="<?php bloginfo( 'charset' ); ?>">
14
+	<meta charset="<?php bloginfo('charset'); ?>">
15 15
 	<meta name="viewport" content="width=device-width">
16 16
 	<link rel="profile" href="http://gmpg.org/xfn/11">
17
-	<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
17
+	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
18 18
 	<!--[if lt IE 9]>
19
-	<script src="<?php echo esc_url( get_template_directory_uri() ); ?>/js/html5.js"></script>
19
+	<script src="<?php echo esc_url(get_template_directory_uri()); ?>/js/html5.js"></script>
20 20
 	<![endif]-->
21 21
 	<?php wp_head(); ?>
22 22
 </head>
23 23
 
24 24
 <body <?php body_class(); ?>>
25 25
 <div id="page" class="hfeed site">
26
-	<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'twentyfifteen' ); ?></a>
26
+	<a class="skip-link screen-reader-text" href="#content"><?php _e('Skip to content', 'twentyfifteen'); ?></a>
27 27
 
28 28
 	<div id="sidebar" class="sidebar">
29 29
 		<header id="masthead" class="site-header" role="banner">
30 30
 			<div class="site-branding">
31 31
 				<?php
32
-					if ( is_front_page() && is_home() ) : ?>
33
-						<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
32
+					if (is_front_page() && is_home()) : ?>
33
+						<h1 class="site-title"><a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php bloginfo('name'); ?></a></h1>
34 34
 					<?php else : ?>
35
-						<p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
35
+						<p class="site-title"><a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php bloginfo('name'); ?></a></p>
36 36
 					<?php endif;
37 37
 
38
-					$description = get_bloginfo( 'description', 'display' );
39
-					if ( $description || is_customize_preview() ) : ?>
38
+					$description = get_bloginfo('description', 'display');
39
+					if ($description || is_customize_preview()) : ?>
40 40
 						<p class="site-description"><?php echo $description; ?></p>
41 41
 					<?php endif;
42 42
 				?>
43
-				<button class="secondary-toggle"><?php _e( 'Menu and widgets', 'twentyfifteen' ); ?></button>
43
+				<button class="secondary-toggle"><?php _e('Menu and widgets', 'twentyfifteen'); ?></button>
44 44
 			</div><!-- .site-branding -->
45 45
 		</header><!-- .site-header -->
46 46
 
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,8 +31,11 @@
 block discarded – undo
31 31
 				<?php
32 32
 					if ( is_front_page() && is_home() ) : ?>
33 33
 						<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
34
-					<?php else : ?>
35
-						<p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
34
+					<?php else {
35
+	: ?>
36
+						<p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) );
37
+}
38
+?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
36 39
 					<?php endif;
37 40
 
38 41
 					$description = get_bloginfo( 'description', 'display' );
Please login to merge, or discard this patch.
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The template for displaying the header
4
- *
5
- * Displays all of the head element and everything up until the "site-content" div.
6
- *
7
- * @package WordPress
8
- * @subpackage Twenty_Fifteen
9
- * @since Twenty Fifteen 1.0
10
- */
3
+		 * The template for displaying the header
4
+		 *
5
+		 * Displays all of the head element and everything up until the "site-content" div.
6
+		 *
7
+		 * @package WordPress
8
+		 * @subpackage Twenty_Fifteen
9
+		 * @since Twenty Fifteen 1.0
10
+		 */
11 11
 ?><!DOCTYPE html>
12 12
 <html <?php language_attributes(); ?> class="no-js">
13 13
 <head>
Please login to merge, or discard this patch.
src/wp-content/themes/twentyfifteen/sidebar.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The sidebar containing the main widget area
4
- *
5
- * @package WordPress
6
- * @subpackage Twenty_Fifteen
7
- * @since Twenty Fifteen 1.0
8
- */
3
+				 * The sidebar containing the main widget area
4
+				 *
5
+				 * @package WordPress
6
+				 * @subpackage Twenty_Fifteen
7
+				 * @since Twenty Fifteen 1.0
8
+				 */
9 9
 
10 10
 if ( has_nav_menu( 'primary' ) || has_nav_menu( 'social' ) || is_active_sidebar( 'sidebar-1' )  ) : ?>
11 11
 	<div id="secondary" class="secondary">
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -7,38 +7,38 @@
 block discarded – undo
7 7
  * @since Twenty Fifteen 1.0
8 8
  */
9 9
 
10
-if ( has_nav_menu( 'primary' ) || has_nav_menu( 'social' ) || is_active_sidebar( 'sidebar-1' )  ) : ?>
10
+if (has_nav_menu('primary') || has_nav_menu('social') || is_active_sidebar('sidebar-1')) : ?>
11 11
 	<div id="secondary" class="secondary">
12 12
 
13
-		<?php if ( has_nav_menu( 'primary' ) ) : ?>
13
+		<?php if (has_nav_menu('primary')) : ?>
14 14
 			<nav id="site-navigation" class="main-navigation" role="navigation">
15 15
 				<?php
16 16
 					// Primary navigation menu.
17
-					wp_nav_menu( array(
17
+					wp_nav_menu(array(
18 18
 						'menu_class'     => 'nav-menu',
19 19
 						'theme_location' => 'primary',
20
-					) );
20
+					));
21 21
 				?>
22 22
 			</nav><!-- .main-navigation -->
23 23
 		<?php endif; ?>
24 24
 
25
-		<?php if ( has_nav_menu( 'social' ) ) : ?>
25
+		<?php if (has_nav_menu('social')) : ?>
26 26
 			<nav id="social-navigation" class="social-navigation" role="navigation">
27 27
 				<?php
28 28
 					// Social links navigation menu.
29
-					wp_nav_menu( array(
29
+					wp_nav_menu(array(
30 30
 						'theme_location' => 'social',
31 31
 						'depth'          => 1,
32 32
 						'link_before'    => '<span class="screen-reader-text">',
33 33
 						'link_after'     => '</span>',
34
-					) );
34
+					));
35 35
 				?>
36 36
 			</nav><!-- .social-navigation -->
37 37
 		<?php endif; ?>
38 38
 
39
-		<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
39
+		<?php if (is_active_sidebar('sidebar-1')) : ?>
40 40
 			<div id="widget-area" class="widget-area" role="complementary">
41
-				<?php dynamic_sidebar( 'sidebar-1' ); ?>
41
+				<?php dynamic_sidebar('sidebar-1'); ?>
42 42
 			</div><!-- .widget-area -->
43 43
 		<?php endif; ?>
44 44
 
Please login to merge, or discard this patch.
src/wp-content/themes/twentyfifteen/index.php 3 patches
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -19,9 +19,9 @@  discard block
 block discarded – undo
19 19
 	<div id="primary" class="content-area">
20 20
 		<main id="main" class="site-main" role="main">
21 21
 
22
-		<?php if ( have_posts() ) : ?>
22
+		<?php if (have_posts()) : ?>
23 23
 
24
-			<?php if ( is_home() && ! is_front_page() ) : ?>
24
+			<?php if (is_home() && ! is_front_page()) : ?>
25 25
 				<header>
26 26
 					<h1 class="page-title screen-reader-text"><?php single_post_title(); ?></h1>
27 27
 				</header>
@@ -29,28 +29,28 @@  discard block
 block discarded – undo
29 29
 
30 30
 			<?php
31 31
 			// Start the loop.
32
-			while ( have_posts() ) : the_post();
32
+			while (have_posts()) : the_post();
33 33
 
34 34
 				/*
35 35
 				 * Include the Post-Format-specific template for the content.
36 36
 				 * If you want to override this in a child theme, then include a file
37 37
 				 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
38 38
 				 */
39
-				get_template_part( 'content', get_post_format() );
39
+				get_template_part('content', get_post_format());
40 40
 
41 41
 			// End the loop.
42 42
 			endwhile;
43 43
 
44 44
 			// Previous/next page navigation.
45
-			the_posts_pagination( array(
46
-				'prev_text'          => __( 'Previous page', 'twentyfifteen' ),
47
-				'next_text'          => __( 'Next page', 'twentyfifteen' ),
48
-				'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>',
49
-			) );
45
+			the_posts_pagination(array(
46
+				'prev_text'          => __('Previous page', 'twentyfifteen'),
47
+				'next_text'          => __('Next page', 'twentyfifteen'),
48
+				'before_page_number' => '<span class="meta-nav screen-reader-text">'.__('Page', 'twentyfifteen').' </span>',
49
+			));
50 50
 
51 51
 		// If no content, include the "No posts found" template.
52 52
 		else :
53
-			get_template_part( 'content', 'none' );
53
+			get_template_part('content', 'none');
54 54
 
55 55
 		endif;
56 56
 		?>
Please login to merge, or discard this patch.
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -1,18 +1,18 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The main template file
4
- *
5
- * This is the most generic template file in a WordPress theme
6
- * and one of the two required files for a theme (the other being style.css).
7
- * It is used to display a page when nothing more specific matches a query.
8
- * e.g., it puts together the home page when no home.php file exists.
9
- *
10
- * Learn more: {@link https://codex.wordpress.org/Template_Hierarchy}
11
- *
12
- * @package WordPress
13
- * @subpackage Twenty_Fifteen
14
- * @since Twenty Fifteen 1.0
15
- */
3
+	 * The main template file
4
+	 *
5
+	 * This is the most generic template file in a WordPress theme
6
+	 * and one of the two required files for a theme (the other being style.css).
7
+	 * It is used to display a page when nothing more specific matches a query.
8
+	 * e.g., it puts together the home page when no home.php file exists.
9
+	 *
10
+	 * Learn more: {@link https://codex.wordpress.org/Template_Hierarchy}
11
+	 *
12
+	 * @package WordPress
13
+	 * @subpackage Twenty_Fifteen
14
+	 * @since Twenty Fifteen 1.0
15
+	 */
16 16
 
17 17
 get_header(); ?>
18 18
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,8 +52,10 @@
 block discarded – undo
52 52
 			) );
53 53
 
54 54
 		// If no content, include the "No posts found" template.
55
-		else :
55
+		else {
56
+			:
56 57
 			get_template_part( 'content', 'none' );
58
+		}
57 59
 
58 60
 		endif;
59 61
 		?>
Please login to merge, or discard this patch.
src/wp-content/themes/twentyfifteen/content-link.php 2 patches
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -15,10 +15,10 @@  discard block
 block discarded – undo
15 15
 
16 16
 	<header class="entry-header">
17 17
 		<?php
18
-			if ( is_single() ) :
19
-				the_title( sprintf( '<h1 class="entry-title"><a href="%s">', esc_url( twentyfifteen_get_link_url() ) ), '</a></h1>' );
18
+			if (is_single()) :
19
+				the_title(sprintf('<h1 class="entry-title"><a href="%s">', esc_url(twentyfifteen_get_link_url())), '</a></h1>');
20 20
 			else :
21
-				the_title( sprintf( '<h2 class="entry-title"><a href="%s">', esc_url( twentyfifteen_get_link_url() ) ), '</a></h2>' );
21
+				the_title(sprintf('<h2 class="entry-title"><a href="%s">', esc_url(twentyfifteen_get_link_url())), '</a></h2>');
22 22
 			endif;
23 23
 		?>
24 24
 	</header>
@@ -27,33 +27,33 @@  discard block
 block discarded – undo
27 27
 	<div class="entry-content">
28 28
 		<?php
29 29
 			/* translators: %s: Name of current post */
30
-			the_content( sprintf(
31
-				__( 'Continue reading %s', 'twentyfifteen' ),
32
-				the_title( '<span class="screen-reader-text">', '</span>', false )
33
-			) );
30
+			the_content(sprintf(
31
+				__('Continue reading %s', 'twentyfifteen'),
32
+				the_title('<span class="screen-reader-text">', '</span>', false)
33
+			));
34 34
 
35
-			wp_link_pages( array(
36
-				'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfifteen' ) . '</span>',
35
+			wp_link_pages(array(
36
+				'before'      => '<div class="page-links"><span class="page-links-title">'.__('Pages:', 'twentyfifteen').'</span>',
37 37
 				'after'       => '</div>',
38 38
 				'link_before' => '<span>',
39 39
 				'link_after'  => '</span>',
40
-				'pagelink'    => '<span class="screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>%',
40
+				'pagelink'    => '<span class="screen-reader-text">'.__('Page', 'twentyfifteen').' </span>%',
41 41
 				'separator'   => '<span class="screen-reader-text">, </span>',
42
-			) );
42
+			));
43 43
 		?>
44 44
 	</div>
45 45
 	<!-- .entry-content -->
46 46
 
47 47
 	<?php
48 48
 		// Author bio.
49
-		if ( is_single() && get_the_author_meta( 'description' ) ) :
50
-			get_template_part( 'author-bio' );
49
+		if (is_single() && get_the_author_meta('description')) :
50
+			get_template_part('author-bio');
51 51
 		endif;
52 52
 	?>
53 53
 
54 54
 	<footer class="entry-footer">
55 55
 		<?php twentyfifteen_entry_meta(); ?>
56
-		<?php edit_post_link( __( 'Edit', 'twentyfifteen' ), '<span class="edit-link">', '</span>' ); ?>
56
+		<?php edit_post_link(__('Edit', 'twentyfifteen'), '<span class="edit-link">', '</span>'); ?>
57 57
 	</footer>
58 58
 	<!-- .entry-footer -->
59 59
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,8 +21,10 @@
 block discarded – undo
21 21
 
22 22
 			if ( is_single() ) :
23 23
 				the_title( '<h1 class="entry-title">', '</h1>' );
24
-			else :
24
+			else {
25
+				:
25 26
 				the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
27
+			}
26 28
 			endif;
27 29
 		?>
28 30
 
Please login to merge, or discard this patch.
src/wp-content/themes/twentyfifteen/page.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,13 +18,13 @@
 block discarded – undo
18 18
 
19 19
 		<?php
20 20
 		// Start the loop.
21
-		while ( have_posts() ) : the_post();
21
+		while (have_posts()) : the_post();
22 22
 
23 23
 			// Include the page content template.
24
-			get_template_part( 'content', 'page' );
24
+			get_template_part('content', 'page');
25 25
 
26 26
 			// If comments are open or we have at least one comment, load up the comment template.
27
-			if ( comments_open() || get_comments_number() ) :
27
+			if (comments_open() || get_comments_number()) :
28 28
 				comments_template();
29 29
 			endif;
30 30
 
Please login to merge, or discard this patch.
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The template for displaying pages
4
- *
5
- * This is the template that displays all pages by default.
6
- * Please note that this is the WordPress construct of pages and that
7
- * other "pages" on your WordPress site will use a different template.
8
- *
9
- * @package WordPress
10
- * @subpackage Twenty_Fifteen
11
- * @since Twenty Fifteen 1.0
12
- */
3
+		 * The template for displaying pages
4
+		 *
5
+		 * This is the template that displays all pages by default.
6
+		 * Please note that this is the WordPress construct of pages and that
7
+		 * other "pages" on your WordPress site will use a different template.
8
+		 *
9
+		 * @package WordPress
10
+		 * @subpackage Twenty_Fifteen
11
+		 * @since Twenty Fifteen 1.0
12
+		 */
13 13
 
14 14
 get_header(); ?>
15 15
 
Please login to merge, or discard this patch.
src/wp-content/themes/twentyfifteen/search.php 3 patches
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -12,15 +12,15 @@  discard block
 block discarded – undo
12 12
 	<section id="primary" class="content-area">
13 13
 		<main id="main" class="site-main" role="main">
14 14
 
15
-		<?php if ( have_posts() ) : ?>
15
+		<?php if (have_posts()) : ?>
16 16
 
17 17
 			<header class="page-header">
18
-				<h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentyfifteen' ), get_search_query() ); ?></h1>
18
+				<h1 class="page-title"><?php printf(__('Search Results for: %s', 'twentyfifteen'), get_search_query()); ?></h1>
19 19
 			</header><!-- .page-header -->
20 20
 
21 21
 			<?php
22 22
 			// Start the loop.
23
-			while ( have_posts() ) : the_post(); ?>
23
+			while (have_posts()) : the_post(); ?>
24 24
 
25 25
 				<?php
26 26
 				/*
@@ -28,21 +28,21 @@  discard block
 block discarded – undo
28 28
 				 * If you want to overload this in a child theme then include a file
29 29
 				 * called content-search.php and that will be used instead.
30 30
 				 */
31
-				get_template_part( 'content', 'search' );
31
+				get_template_part('content', 'search');
32 32
 
33 33
 			// End the loop.
34 34
 			endwhile;
35 35
 
36 36
 			// Previous/next page navigation.
37
-			the_posts_pagination( array(
38
-				'prev_text'          => __( 'Previous page', 'twentyfifteen' ),
39
-				'next_text'          => __( 'Next page', 'twentyfifteen' ),
40
-				'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>',
41
-			) );
37
+			the_posts_pagination(array(
38
+				'prev_text'          => __('Previous page', 'twentyfifteen'),
39
+				'next_text'          => __('Next page', 'twentyfifteen'),
40
+				'before_page_number' => '<span class="meta-nav screen-reader-text">'.__('Page', 'twentyfifteen').' </span>',
41
+			));
42 42
 
43 43
 		// If no content, include the "No posts found" template.
44 44
 		else :
45
-			get_template_part( 'content', 'none' );
45
+			get_template_part('content', 'none');
46 46
 
47 47
 		endif;
48 48
 		?>
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The template for displaying search results pages.
4
- *
5
- * @package WordPress
6
- * @subpackage Twenty_Fifteen
7
- * @since Twenty Fifteen 1.0
8
- */
3
+				 * The template for displaying search results pages.
4
+				 *
5
+				 * @package WordPress
6
+				 * @subpackage Twenty_Fifteen
7
+				 * @since Twenty Fifteen 1.0
8
+				 */
9 9
 
10 10
 get_header(); ?>
11 11
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,8 +52,10 @@
 block discarded – undo
52 52
 			) );
53 53
 
54 54
 		// If no content, include the "No posts found" template.
55
-		else :
55
+		else {
56
+			:
56 57
 			get_template_part( 'content', 'none' );
58
+		}
57 59
 
58 60
 		endif;
59 61
 		?>
Please login to merge, or discard this patch.
src/wp-content/themes/twentyfifteen/inc/back-compat.php 2 patches
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -19,11 +19,11 @@  discard block
 block discarded – undo
19 19
  * @since Twenty Fifteen 1.0
20 20
  */
21 21
 function twentyfifteen_switch_theme() {
22
-	switch_theme( WP_DEFAULT_THEME, WP_DEFAULT_THEME );
23
-	unset( $_GET['activated'] );
24
-	add_action( 'admin_notices', 'twentyfifteen_upgrade_notice' );
22
+	switch_theme(WP_DEFAULT_THEME, WP_DEFAULT_THEME);
23
+	unset($_GET['activated']);
24
+	add_action('admin_notices', 'twentyfifteen_upgrade_notice');
25 25
 }
26
-add_action( 'after_switch_theme', 'twentyfifteen_switch_theme' );
26
+add_action('after_switch_theme', 'twentyfifteen_switch_theme');
27 27
 
28 28
 /**
29 29
  * Add message for unsuccessful theme switch.
@@ -34,8 +34,8 @@  discard block
 block discarded – undo
34 34
  * @since Twenty Fifteen 1.0
35 35
  */
36 36
 function twentyfifteen_upgrade_notice() {
37
-	$message = sprintf( __( 'Twenty Fifteen requires at least WordPress version 4.1. You are running version %s. Please upgrade and try again.', 'twentyfifteen' ), $GLOBALS['wp_version'] );
38
-	printf( '<div class="error"><p>%s</p></div>', $message );
37
+	$message = sprintf(__('Twenty Fifteen requires at least WordPress version 4.1. You are running version %s. Please upgrade and try again.', 'twentyfifteen'), $GLOBALS['wp_version']);
38
+	printf('<div class="error"><p>%s</p></div>', $message);
39 39
 }
40 40
 
41 41
 /**
@@ -44,11 +44,11 @@  discard block
 block discarded – undo
44 44
  * @since Twenty Fifteen 1.0
45 45
  */
46 46
 function twentyfifteen_customize() {
47
-	wp_die( sprintf( __( 'Twenty Fifteen requires at least WordPress version 4.1. You are running version %s. Please upgrade and try again.', 'twentyfifteen' ), $GLOBALS['wp_version'] ), '', array(
47
+	wp_die(sprintf(__('Twenty Fifteen requires at least WordPress version 4.1. You are running version %s. Please upgrade and try again.', 'twentyfifteen'), $GLOBALS['wp_version']), '', array(
48 48
 		'back_link' => true,
49
-	) );
49
+	));
50 50
 }
51
-add_action( 'load-customize.php', 'twentyfifteen_customize' );
51
+add_action('load-customize.php', 'twentyfifteen_customize');
52 52
 
53 53
 /**
54 54
  * Prevent the Theme Preview from being loaded on WordPress versions prior to 4.1.
@@ -56,8 +56,8 @@  discard block
 block discarded – undo
56 56
  * @since Twenty Fifteen 1.0
57 57
  */
58 58
 function twentyfifteen_preview() {
59
-	if ( isset( $_GET['preview'] ) ) {
60
-		wp_die( sprintf( __( 'Twenty Fifteen requires at least WordPress version 4.1. You are running version %s. Please upgrade and try again.', 'twentyfifteen' ), $GLOBALS['wp_version'] ) );
59
+	if (isset($_GET['preview'])) {
60
+		wp_die(sprintf(__('Twenty Fifteen requires at least WordPress version 4.1. You are running version %s. Please upgrade and try again.', 'twentyfifteen'), $GLOBALS['wp_version']));
61 61
 	}
62 62
 }
63
-add_action( 'template_redirect', 'twentyfifteen_preview' );
63
+add_action('template_redirect', 'twentyfifteen_preview');
Please login to merge, or discard this patch.
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Twenty Fifteen back compat functionality
4
- *
5
- * Prevents Twenty Fifteen from running on WordPress versions prior to 4.1,
6
- * since this theme is not meant to be backward compatible beyond that and
7
- * relies on many newer functions and markup changes introduced in 4.1.
8
- *
9
- * @package WordPress
10
- * @subpackage Twenty_Fifteen
11
- * @since Twenty Fifteen 1.0
12
- */
3
+	 * Twenty Fifteen back compat functionality
4
+	 *
5
+	 * Prevents Twenty Fifteen from running on WordPress versions prior to 4.1,
6
+	 * since this theme is not meant to be backward compatible beyond that and
7
+	 * relies on many newer functions and markup changes introduced in 4.1.
8
+	 *
9
+	 * @package WordPress
10
+	 * @subpackage Twenty_Fifteen
11
+	 * @since Twenty Fifteen 1.0
12
+	 */
13 13
 
14 14
 /**
15 15
  * Prevent switching to Twenty Fifteen on old versions of WordPress.
Please login to merge, or discard this patch.
src/wp-content/themes/twentyfifteen/inc/custom-header.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Custom Header functionality for Twenty Fifteen
4
- *
5
- * @package WordPress
6
- * @subpackage Twenty_Fifteen
7
- * @since Twenty Fifteen 1.0
8
- */
3
+	 * Custom Header functionality for Twenty Fifteen
4
+	 *
5
+	 * @package WordPress
6
+	 * @subpackage Twenty_Fifteen
7
+	 * @since Twenty Fifteen 1.0
8
+	 */
9 9
 
10 10
 /**
11 11
  * Set up the WordPress core custom header feature.
Please login to merge, or discard this patch.
Spacing   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
  */
15 15
 function twentyfifteen_custom_header_setup() {
16 16
 	$color_scheme        = twentyfifteen_get_color_scheme();
17
-	$default_text_color  = trim( $color_scheme[4], '#' );
17
+	$default_text_color  = trim($color_scheme[4], '#');
18 18
 
19 19
 	/**
20 20
 	 * Filter Twenty Fifteen custom-header support arguments.
@@ -31,14 +31,14 @@  discard block
 block discarded – undo
31 31
 	 *                                          displayed on the blog.
32 32
 	 * }
33 33
 	 */
34
-	add_theme_support( 'custom-header', apply_filters( 'twentyfifteen_custom_header_args', array(
34
+	add_theme_support('custom-header', apply_filters('twentyfifteen_custom_header_args', array(
35 35
 		'default-text-color'     => $default_text_color,
36 36
 		'width'                  => 954,
37 37
 		'height'                 => 1300,
38 38
 		'wp-head-callback'       => 'twentyfifteen_header_style',
39
-	) ) );
39
+	)));
40 40
 }
41
-add_action( 'after_setup_theme', 'twentyfifteen_custom_header_setup' );
41
+add_action('after_setup_theme', 'twentyfifteen_custom_header_setup');
42 42
 
43 43
 /**
44 44
  * Convert HEX to RGB.
@@ -49,25 +49,25 @@  discard block
 block discarded – undo
49 49
  * @return array Array containing RGB (red, green, and blue) values for the given
50 50
  *               HEX code, empty array otherwise.
51 51
  */
52
-function twentyfifteen_hex2rgb( $color ) {
53
-	$color = trim( $color, '#' );
54
-
55
-	if ( strlen( $color ) == 3 ) {
56
-		$r = hexdec( substr( $color, 0, 1 ).substr( $color, 0, 1 ) );
57
-		$g = hexdec( substr( $color, 1, 1 ).substr( $color, 1, 1 ) );
58
-		$b = hexdec( substr( $color, 2, 1 ).substr( $color, 2, 1 ) );
59
-	} else if ( strlen( $color ) == 6 ) {
60
-		$r = hexdec( substr( $color, 0, 2 ) );
61
-		$g = hexdec( substr( $color, 2, 2 ) );
62
-		$b = hexdec( substr( $color, 4, 2 ) );
52
+function twentyfifteen_hex2rgb($color) {
53
+	$color = trim($color, '#');
54
+
55
+	if (strlen($color) == 3) {
56
+		$r = hexdec(substr($color, 0, 1).substr($color, 0, 1));
57
+		$g = hexdec(substr($color, 1, 1).substr($color, 1, 1));
58
+		$b = hexdec(substr($color, 2, 1).substr($color, 2, 1));
59
+	} else if (strlen($color) == 6) {
60
+		$r = hexdec(substr($color, 0, 2));
61
+		$g = hexdec(substr($color, 2, 2));
62
+		$b = hexdec(substr($color, 4, 2));
63 63
 	} else {
64 64
 		return array();
65 65
 	}
66 66
 
67
-	return array( 'red' => $r, 'green' => $g, 'blue' => $b );
67
+	return array('red' => $r, 'green' => $g, 'blue' => $b);
68 68
 }
69 69
 
70
-if ( ! function_exists( 'twentyfifteen_header_style' ) ) :
70
+if ( ! function_exists('twentyfifteen_header_style')) :
71 71
 /**
72 72
  * Styles the header image and text displayed on the blog.
73 73
  *
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 	$header_image = get_header_image();
80 80
 
81 81
 	// If no custom options for text are set, let's bail.
82
-	if ( empty( $header_image ) && display_header_text() ) {
82
+	if (empty($header_image) && display_header_text()) {
83 83
 		return;
84 84
 	}
85 85
 
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 	<style type="text/css" id="twentyfifteen-header-css">
89 89
 	<?php
90 90
 		// Short header for when there is no Custom Header and Header Text is hidden.
91
-		if ( empty( $header_image ) && ! display_header_text() ) :
91
+		if (empty($header_image) && ! display_header_text()) :
92 92
 	?>
93 93
 		.site-header {
94 94
 			padding-top: 14px;
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
 		endif;
131 131
 
132 132
 		// Has a Custom Header been added?
133
-		if ( ! empty( $header_image ) ) :
133
+		if ( ! empty($header_image)) :
134 134
 	?>
135 135
 		.site-header {
136 136
 
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
 		endif;
173 173
 
174 174
 		// Has the text been hidden?
175
-		if ( ! display_header_text() ) :
175
+		if ( ! display_header_text()) :
176 176
 	?>
177 177
 		.site-title,
178 178
 		.site-description {
@@ -195,10 +195,10 @@  discard block
 block discarded – undo
195 195
 function twentyfifteen_header_background_color_css() {
196 196
 	$color_scheme            = twentyfifteen_get_color_scheme();
197 197
 	$default_color           = $color_scheme[1];
198
-	$header_background_color = get_theme_mod( 'header_background_color', $default_color );
198
+	$header_background_color = get_theme_mod('header_background_color', $default_color);
199 199
 
200 200
 	// Don't do anything if the current color is the default.
201
-	if ( $header_background_color === $default_color ) {
201
+	if ($header_background_color === $default_color) {
202 202
 		return;
203 203
 	}
204 204
 
@@ -227,9 +227,9 @@  discard block
 block discarded – undo
227 227
 		}
228 228
 	';
229 229
 
230
-	wp_add_inline_style( 'twentyfifteen-style', sprintf( $css, $header_background_color ) );
230
+	wp_add_inline_style('twentyfifteen-style', sprintf($css, $header_background_color));
231 231
 }
232
-add_action( 'wp_enqueue_scripts', 'twentyfifteen_header_background_color_css', 11 );
232
+add_action('wp_enqueue_scripts', 'twentyfifteen_header_background_color_css', 11);
233 233
 
234 234
 /**
235 235
  * Enqueues front-end CSS for the sidebar text color.
@@ -239,18 +239,18 @@  discard block
 block discarded – undo
239 239
 function twentyfifteen_sidebar_text_color_css() {
240 240
 	$color_scheme       = twentyfifteen_get_color_scheme();
241 241
 	$default_color      = $color_scheme[4];
242
-	$sidebar_link_color = get_theme_mod( 'sidebar_textcolor', $default_color );
242
+	$sidebar_link_color = get_theme_mod('sidebar_textcolor', $default_color);
243 243
 
244 244
 	// Don't do anything if the current color is the default.
245
-	if ( $sidebar_link_color === $default_color ) {
245
+	if ($sidebar_link_color === $default_color) {
246 246
 		return;
247 247
 	}
248 248
 
249 249
 	// If we get this far, we have custom styles. Let's do this.
250
-	$sidebar_link_color_rgb     = twentyfifteen_hex2rgb( $sidebar_link_color );
251
-	$sidebar_text_color         = vsprintf( 'rgba( %1$s, %2$s, %3$s, 0.7)', $sidebar_link_color_rgb );
252
-	$sidebar_border_color       = vsprintf( 'rgba( %1$s, %2$s, %3$s, 0.1)', $sidebar_link_color_rgb );
253
-	$sidebar_border_focus_color = vsprintf( 'rgba( %1$s, %2$s, %3$s, 0.3)', $sidebar_link_color_rgb );
250
+	$sidebar_link_color_rgb     = twentyfifteen_hex2rgb($sidebar_link_color);
251
+	$sidebar_text_color         = vsprintf('rgba( %1$s, %2$s, %3$s, 0.7)', $sidebar_link_color_rgb);
252
+	$sidebar_border_color       = vsprintf('rgba( %1$s, %2$s, %3$s, 0.1)', $sidebar_link_color_rgb);
253
+	$sidebar_border_focus_color = vsprintf('rgba( %1$s, %2$s, %3$s, 0.3)', $sidebar_link_color_rgb);
254 254
 
255 255
 	$css = '
256 256
 		/* Custom Sidebar Text Color */
@@ -365,6 +365,6 @@  discard block
 block discarded – undo
365 365
 		}
366 366
 	';
367 367
 
368
-	wp_add_inline_style( 'twentyfifteen-style', sprintf( $css, $sidebar_link_color, $sidebar_text_color, $sidebar_border_color, $sidebar_border_focus_color ) );
368
+	wp_add_inline_style('twentyfifteen-style', sprintf($css, $sidebar_link_color, $sidebar_text_color, $sidebar_border_color, $sidebar_border_focus_color));
369 369
 }
370
-add_action( 'wp_enqueue_scripts', 'twentyfifteen_sidebar_text_color_css', 11 );
370
+add_action('wp_enqueue_scripts', 'twentyfifteen_sidebar_text_color_css', 11);
Please login to merge, or discard this patch.