Completed
Push — master ( 8ff7a8...c0c536 )
by Stephen
77:04 queued 40:03
created
src/wp-content/themes/twentyfifteen/content-search.php 3 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,23 +14,23 @@
 block discarded – undo
14 14
 	<?php twentyfifteen_post_thumbnail(); ?>
15 15
 
16 16
 	<header class="entry-header">
17
-		<?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
17
+		<?php the_title(sprintf('<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url(get_permalink())), '</a></h2>'); ?>
18 18
 	</header><!-- .entry-header -->
19 19
 
20 20
 	<div class="entry-summary">
21 21
 		<?php the_excerpt(); ?>
22 22
 	</div><!-- .entry-summary -->
23 23
 
24
-	<?php if ( 'post' == get_post_type() ) : ?>
24
+	<?php if ('post' == get_post_type()) : ?>
25 25
 
26 26
 		<footer class="entry-footer">
27 27
 			<?php twentyfifteen_entry_meta(); ?>
28
-			<?php edit_post_link( __( 'Edit', 'twentyfifteen' ), '<span class="edit-link">', '</span>' ); ?>
28
+			<?php edit_post_link(__('Edit', 'twentyfifteen'), '<span class="edit-link">', '</span>'); ?>
29 29
 		</footer><!-- .entry-footer -->
30 30
 
31 31
 	<?php else : ?>
32 32
 
33
-		<?php edit_post_link( __( 'Edit', 'twentyfifteen' ), '<footer class="entry-footer"><span class="edit-link">', '</span></footer><!-- .entry-footer -->' ); ?>
33
+		<?php edit_post_link(__('Edit', 'twentyfifteen'), '<footer class="entry-footer"><span class="edit-link">', '</span></footer><!-- .entry-footer -->'); ?>
34 34
 
35 35
 	<?php endif; ?>
36 36
 
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,9 +28,12 @@
 block discarded – undo
28 28
 			<?php edit_post_link( __( 'Edit', 'twentyfifteen' ), '<span class="edit-link">', '</span>' ); ?>
29 29
 		</footer><!-- .entry-footer -->
30 30
 
31
-	<?php else : ?>
31
+	<?php else {
32
+	: ?>
32 33
 
33
-		<?php edit_post_link( __( 'Edit', 'twentyfifteen' ), '<footer class="entry-footer"><span class="edit-link">', '</span></footer><!-- .entry-footer -->' ); ?>
34
+		<?php edit_post_link( __( 'Edit', 'twentyfifteen' ), '<footer class="entry-footer"><span class="edit-link">', '</span></footer><!-- .entry-footer -->' );
35
+}
36
+?>
34 37
 
35 38
 	<?php endif; ?>
36 39
 
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 part for displaying results in search pages
4
- *
5
- * Learn more: {@link https://codex.wordpress.org/Template_Hierarchy}
6
- *
7
- * @package WordPress
8
- * @subpackage Twenty_Fifteen
9
- * @since Twenty Fifteen 1.0
10
- */
3
+	 * The template part for displaying results in search pages
4
+	 *
5
+	 * Learn more: {@link https://codex.wordpress.org/Template_Hierarchy}
6
+	 *
7
+	 * @package WordPress
8
+	 * @subpackage Twenty_Fifteen
9
+	 * @since Twenty Fifteen 1.0
10
+	 */
11 11
 ?>
12 12
 
13 13
 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
Please login to merge, or discard this patch.
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
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.
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.
src/wp-content/themes/twentyfifteen/sidebar.php 2 patches
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.
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.
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/functions.php 2 patches
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -1,29 +1,29 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Twenty Fifteen functions and definitions
4
- *
5
- * Set up the theme and provides some helper functions, which are used in the
6
- * theme as custom template tags. Others are attached to action and filter
7
- * hooks in WordPress to change core functionality.
8
- *
9
- * When using a child theme you can override certain functions (those wrapped
10
- * in a function_exists() call) by defining them first in your child theme's
11
- * functions.php file. The child theme's functions.php file is included before
12
- * the parent theme's file, so the child theme functions would be used.
13
- *
14
- * @link https://codex.wordpress.org/Theme_Development
15
- * @link https://codex.wordpress.org/Child_Themes
16
- *
17
- * Functions that are not pluggable (not wrapped in function_exists()) are
18
- * instead attached to a filter or action hook.
19
- *
20
- * For more information on hooks, actions, and filters,
21
- * {@link https://codex.wordpress.org/Plugin_API}
22
- *
23
- * @package WordPress
24
- * @subpackage Twenty_Fifteen
25
- * @since Twenty Fifteen 1.0
26
- */
3
+		 * Twenty Fifteen functions and definitions
4
+		 *
5
+		 * Set up the theme and provides some helper functions, which are used in the
6
+		 * theme as custom template tags. Others are attached to action and filter
7
+		 * hooks in WordPress to change core functionality.
8
+		 *
9
+		 * When using a child theme you can override certain functions (those wrapped
10
+		 * in a function_exists() call) by defining them first in your child theme's
11
+		 * functions.php file. The child theme's functions.php file is included before
12
+		 * the parent theme's file, so the child theme functions would be used.
13
+		 *
14
+		 * @link https://codex.wordpress.org/Theme_Development
15
+		 * @link https://codex.wordpress.org/Child_Themes
16
+		 *
17
+		 * Functions that are not pluggable (not wrapped in function_exists()) are
18
+		 * instead attached to a filter or action hook.
19
+		 *
20
+		 * For more information on hooks, actions, and filters,
21
+		 * {@link https://codex.wordpress.org/Plugin_API}
22
+		 *
23
+		 * @package WordPress
24
+		 * @subpackage Twenty_Fifteen
25
+		 * @since Twenty Fifteen 1.0
26
+		 */
27 27
 
28 28
 /**
29 29
  * Set the content width based on the theme's design and stylesheet.
Please login to merge, or discard this patch.
Spacing   +85 added lines, -85 removed lines patch added patch discarded remove patch
@@ -30,18 +30,18 @@  discard block
 block discarded – undo
30 30
  *
31 31
  * @since Twenty Fifteen 1.0
32 32
  */
33
-if ( ! isset( $content_width ) ) {
33
+if ( ! isset($content_width)) {
34 34
 	$content_width = 660;
35 35
 }
36 36
 
37 37
 /**
38 38
  * Twenty Fifteen only works in WordPress 4.1 or later.
39 39
  */
40
-if ( version_compare( $GLOBALS['wp_version'], '4.1-alpha', '<' ) ) {
41
-	require get_template_directory() . '/inc/back-compat.php';
40
+if (version_compare($GLOBALS['wp_version'], '4.1-alpha', '<')) {
41
+	require get_template_directory().'/inc/back-compat.php';
42 42
 }
43 43
 
44
-if ( ! function_exists( 'twentyfifteen_setup' ) ) :
44
+if ( ! function_exists('twentyfifteen_setup')) :
45 45
 /**
46 46
  * Sets up theme defaults and registers support for various WordPress features.
47 47
  *
@@ -59,10 +59,10 @@  discard block
 block discarded – undo
59 59
 	 * If you're building a theme based on twentyfifteen, use a find and replace
60 60
 	 * to change 'twentyfifteen' to the name of your theme in all the template files
61 61
 	 */
62
-	load_theme_textdomain( 'twentyfifteen', get_template_directory() . '/languages' );
62
+	load_theme_textdomain('twentyfifteen', get_template_directory().'/languages');
63 63
 
64 64
 	// Add default posts and comments RSS feed links to head.
65
-	add_theme_support( 'automatic-feed-links' );
65
+	add_theme_support('automatic-feed-links');
66 66
 
67 67
 	/*
68 68
 	 * Let WordPress manage the document title.
@@ -70,67 +70,67 @@  discard block
 block discarded – undo
70 70
 	 * hard-coded <title> tag in the document head, and expect WordPress to
71 71
 	 * provide it for us.
72 72
 	 */
73
-	add_theme_support( 'title-tag' );
73
+	add_theme_support('title-tag');
74 74
 
75 75
 	/*
76 76
 	 * Enable support for Post Thumbnails on posts and pages.
77 77
 	 *
78 78
 	 * See: https://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails
79 79
 	 */
80
-	add_theme_support( 'post-thumbnails' );
81
-	set_post_thumbnail_size( 825, 510, true );
80
+	add_theme_support('post-thumbnails');
81
+	set_post_thumbnail_size(825, 510, true);
82 82
 
83 83
 	// This theme uses wp_nav_menu() in two locations.
84
-	register_nav_menus( array(
85
-		'primary' => __( 'Primary Menu',      'twentyfifteen' ),
86
-		'social'  => __( 'Social Links Menu', 'twentyfifteen' ),
87
-	) );
84
+	register_nav_menus(array(
85
+		'primary' => __('Primary Menu', 'twentyfifteen'),
86
+		'social'  => __('Social Links Menu', 'twentyfifteen'),
87
+	));
88 88
 
89 89
 	/*
90 90
 	 * Switch default core markup for search form, comment form, and comments
91 91
 	 * to output valid HTML5.
92 92
 	 */
93
-	add_theme_support( 'html5', array(
93
+	add_theme_support('html5', array(
94 94
 		'search-form', 'comment-form', 'comment-list', 'gallery', 'caption'
95
-	) );
95
+	));
96 96
 
97 97
 	/*
98 98
 	 * Enable support for Post Formats.
99 99
 	 *
100 100
 	 * See: https://codex.wordpress.org/Post_Formats
101 101
 	 */
102
-	add_theme_support( 'post-formats', array(
102
+	add_theme_support('post-formats', array(
103 103
 		'aside', 'image', 'video', 'quote', 'link', 'gallery', 'status', 'audio', 'chat'
104
-	) );
104
+	));
105 105
 
106 106
 	/*
107 107
 	 * Enable support for custom logo.
108 108
 	 *
109 109
 	 * @since Twenty Fifteen 1.5
110 110
 	 */
111
-	add_image_size( 'twentyfifteen-logo', 248, 248 );
112
-	add_theme_support( 'custom-logo', array( 'size' => 'twentyfifteen-logo' ) );
111
+	add_image_size('twentyfifteen-logo', 248, 248);
112
+	add_theme_support('custom-logo', array('size' => 'twentyfifteen-logo'));
113 113
 
114 114
 	$color_scheme  = twentyfifteen_get_color_scheme();
115
-	$default_color = trim( $color_scheme[0], '#' );
115
+	$default_color = trim($color_scheme[0], '#');
116 116
 
117 117
 	// Setup the WordPress core custom background feature.
118
-	add_theme_support( 'custom-background', apply_filters( 'twentyfifteen_custom_background_args', array(
118
+	add_theme_support('custom-background', apply_filters('twentyfifteen_custom_background_args', array(
119 119
 		'default-color'      => $default_color,
120 120
 		'default-attachment' => 'fixed',
121
-	) ) );
121
+	)));
122 122
 
123 123
 	/*
124 124
 	 * This theme styles the visual editor to resemble the theme style,
125 125
 	 * specifically font, colors, icons, and column width.
126 126
 	 */
127
-	add_editor_style( array( 'css/editor-style.css', 'genericons/genericons.css', twentyfifteen_fonts_url() ) );
127
+	add_editor_style(array('css/editor-style.css', 'genericons/genericons.css', twentyfifteen_fonts_url()));
128 128
 
129 129
 	// Indicate widget sidebars can use selective refresh in the Customizer.
130
-	add_theme_support( 'customize-selective-refresh-widgets' );
130
+	add_theme_support('customize-selective-refresh-widgets');
131 131
 }
132 132
 endif; // twentyfifteen_setup
133
-add_action( 'after_setup_theme', 'twentyfifteen_setup' );
133
+add_action('after_setup_theme', 'twentyfifteen_setup');
134 134
 
135 135
 /**
136 136
  * Register widget area.
@@ -140,19 +140,19 @@  discard block
 block discarded – undo
140 140
  * @link https://codex.wordpress.org/Function_Reference/register_sidebar
141 141
  */
142 142
 function twentyfifteen_widgets_init() {
143
-	register_sidebar( array(
144
-		'name'          => __( 'Widget Area', 'twentyfifteen' ),
143
+	register_sidebar(array(
144
+		'name'          => __('Widget Area', 'twentyfifteen'),
145 145
 		'id'            => 'sidebar-1',
146
-		'description'   => __( 'Add widgets here to appear in your sidebar.', 'twentyfifteen' ),
146
+		'description'   => __('Add widgets here to appear in your sidebar.', 'twentyfifteen'),
147 147
 		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
148 148
 		'after_widget'  => '</aside>',
149 149
 		'before_title'  => '<h2 class="widget-title">',
150 150
 		'after_title'   => '</h2>',
151
-	) );
151
+	));
152 152
 }
153
-add_action( 'widgets_init', 'twentyfifteen_widgets_init' );
153
+add_action('widgets_init', 'twentyfifteen_widgets_init');
154 154
 
155
-if ( ! function_exists( 'twentyfifteen_fonts_url' ) ) :
155
+if ( ! function_exists('twentyfifteen_fonts_url')) :
156 156
 /**
157 157
  * Register Google fonts for Twenty Fifteen.
158 158
  *
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
 	 * Translators: If there are characters in your language that are not supported
170 170
 	 * by Noto Sans, translate this to 'off'. Do not translate into your own language.
171 171
 	 */
172
-	if ( 'off' !== _x( 'on', 'Noto Sans font: on or off', 'twentyfifteen' ) ) {
172
+	if ('off' !== _x('on', 'Noto Sans font: on or off', 'twentyfifteen')) {
173 173
 		$fonts[] = 'Noto Sans:400italic,700italic,400,700';
174 174
 	}
175 175
 
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
 	 * Translators: If there are characters in your language that are not supported
178 178
 	 * by Noto Serif, translate this to 'off'. Do not translate into your own language.
179 179
 	 */
180
-	if ( 'off' !== _x( 'on', 'Noto Serif font: on or off', 'twentyfifteen' ) ) {
180
+	if ('off' !== _x('on', 'Noto Serif font: on or off', 'twentyfifteen')) {
181 181
 		$fonts[] = 'Noto Serif:400italic,700italic,400,700';
182 182
 	}
183 183
 
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
 	 * Translators: If there are characters in your language that are not supported
186 186
 	 * by Inconsolata, translate this to 'off'. Do not translate into your own language.
187 187
 	 */
188
-	if ( 'off' !== _x( 'on', 'Inconsolata font: on or off', 'twentyfifteen' ) ) {
188
+	if ('off' !== _x('on', 'Inconsolata font: on or off', 'twentyfifteen')) {
189 189
 		$fonts[] = 'Inconsolata:400,700';
190 190
 	}
191 191
 
@@ -193,23 +193,23 @@  discard block
 block discarded – undo
193 193
 	 * Translators: To add an additional character subset specific to your language,
194 194
 	 * translate this to 'greek', 'cyrillic', 'devanagari' or 'vietnamese'. Do not translate into your own language.
195 195
 	 */
196
-	$subset = _x( 'no-subset', 'Add new subset (greek, cyrillic, devanagari, vietnamese)', 'twentyfifteen' );
196
+	$subset = _x('no-subset', 'Add new subset (greek, cyrillic, devanagari, vietnamese)', 'twentyfifteen');
197 197
 
198
-	if ( 'cyrillic' == $subset ) {
198
+	if ('cyrillic' == $subset) {
199 199
 		$subsets .= ',cyrillic,cyrillic-ext';
200
-	} elseif ( 'greek' == $subset ) {
200
+	} elseif ('greek' == $subset) {
201 201
 		$subsets .= ',greek,greek-ext';
202
-	} elseif ( 'devanagari' == $subset ) {
202
+	} elseif ('devanagari' == $subset) {
203 203
 		$subsets .= ',devanagari';
204
-	} elseif ( 'vietnamese' == $subset ) {
204
+	} elseif ('vietnamese' == $subset) {
205 205
 		$subsets .= ',vietnamese';
206 206
 	}
207 207
 
208
-	if ( $fonts ) {
209
-		$fonts_url = add_query_arg( array(
210
-			'family' => urlencode( implode( '|', $fonts ) ),
211
-			'subset' => urlencode( $subsets ),
212
-		), 'https://fonts.googleapis.com/css' );
208
+	if ($fonts) {
209
+		$fonts_url = add_query_arg(array(
210
+			'family' => urlencode(implode('|', $fonts)),
211
+			'subset' => urlencode($subsets),
212
+		), 'https://fonts.googleapis.com/css');
213 213
 	}
214 214
 
215 215
 	return $fonts_url;
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
 function twentyfifteen_javascript_detection() {
227 227
 	echo "<script>(function(html){html.className = html.className.replace(/\bno-js\b/,'js')})(document.documentElement);</script>\n";
228 228
 }
229
-add_action( 'wp_head', 'twentyfifteen_javascript_detection', 0 );
229
+add_action('wp_head', 'twentyfifteen_javascript_detection', 0);
230 230
 
231 231
 /**
232 232
  * Enqueue scripts and styles.
@@ -235,39 +235,39 @@  discard block
 block discarded – undo
235 235
  */
236 236
 function twentyfifteen_scripts() {
237 237
 	// Add custom fonts, used in the main stylesheet.
238
-	wp_enqueue_style( 'twentyfifteen-fonts', twentyfifteen_fonts_url(), array(), null );
238
+	wp_enqueue_style('twentyfifteen-fonts', twentyfifteen_fonts_url(), array(), null);
239 239
 
240 240
 	// Add Genericons, used in the main stylesheet.
241
-	wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.2' );
241
+	wp_enqueue_style('genericons', get_template_directory_uri().'/genericons/genericons.css', array(), '3.2');
242 242
 
243 243
 	// Load our main stylesheet.
244
-	wp_enqueue_style( 'twentyfifteen-style', get_stylesheet_uri() );
244
+	wp_enqueue_style('twentyfifteen-style', get_stylesheet_uri());
245 245
 
246 246
 	// Load the Internet Explorer specific stylesheet.
247
-	wp_enqueue_style( 'twentyfifteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentyfifteen-style' ), '20141010' );
248
-	wp_style_add_data( 'twentyfifteen-ie', 'conditional', 'lt IE 9' );
247
+	wp_enqueue_style('twentyfifteen-ie', get_template_directory_uri().'/css/ie.css', array('twentyfifteen-style'), '20141010');
248
+	wp_style_add_data('twentyfifteen-ie', 'conditional', 'lt IE 9');
249 249
 
250 250
 	// Load the Internet Explorer 7 specific stylesheet.
251
-	wp_enqueue_style( 'twentyfifteen-ie7', get_template_directory_uri() . '/css/ie7.css', array( 'twentyfifteen-style' ), '20141010' );
252
-	wp_style_add_data( 'twentyfifteen-ie7', 'conditional', 'lt IE 8' );
251
+	wp_enqueue_style('twentyfifteen-ie7', get_template_directory_uri().'/css/ie7.css', array('twentyfifteen-style'), '20141010');
252
+	wp_style_add_data('twentyfifteen-ie7', 'conditional', 'lt IE 8');
253 253
 
254
-	wp_enqueue_script( 'twentyfifteen-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20141010', true );
254
+	wp_enqueue_script('twentyfifteen-skip-link-focus-fix', get_template_directory_uri().'/js/skip-link-focus-fix.js', array(), '20141010', true);
255 255
 
256
-	if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
257
-		wp_enqueue_script( 'comment-reply' );
256
+	if (is_singular() && comments_open() && get_option('thread_comments')) {
257
+		wp_enqueue_script('comment-reply');
258 258
 	}
259 259
 
260
-	if ( is_singular() && wp_attachment_is_image() ) {
261
-		wp_enqueue_script( 'twentyfifteen-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20141010' );
260
+	if (is_singular() && wp_attachment_is_image()) {
261
+		wp_enqueue_script('twentyfifteen-keyboard-image-navigation', get_template_directory_uri().'/js/keyboard-image-navigation.js', array('jquery'), '20141010');
262 262
 	}
263 263
 
264
-	wp_enqueue_script( 'twentyfifteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20150330', true );
265
-	wp_localize_script( 'twentyfifteen-script', 'screenReaderText', array(
266
-		'expand'   => '<span class="screen-reader-text">' . __( 'expand child menu', 'twentyfifteen' ) . '</span>',
267
-		'collapse' => '<span class="screen-reader-text">' . __( 'collapse child menu', 'twentyfifteen' ) . '</span>',
268
-	) );
264
+	wp_enqueue_script('twentyfifteen-script', get_template_directory_uri().'/js/functions.js', array('jquery'), '20150330', true);
265
+	wp_localize_script('twentyfifteen-script', 'screenReaderText', array(
266
+		'expand'   => '<span class="screen-reader-text">'.__('expand child menu', 'twentyfifteen').'</span>',
267
+		'collapse' => '<span class="screen-reader-text">'.__('collapse child menu', 'twentyfifteen').'</span>',
268
+	));
269 269
 }
270
-add_action( 'wp_enqueue_scripts', 'twentyfifteen_scripts' );
270
+add_action('wp_enqueue_scripts', 'twentyfifteen_scripts');
271 271
 
272 272
 /**
273 273
  * Add featured image as background image to post navigation elements.
@@ -277,39 +277,39 @@  discard block
 block discarded – undo
277 277
  * @see wp_add_inline_style()
278 278
  */
279 279
 function twentyfifteen_post_nav_background() {
280
-	if ( ! is_single() ) {
280
+	if ( ! is_single()) {
281 281
 		return;
282 282
 	}
283 283
 
284
-	$previous = ( is_attachment() ) ? get_post( get_post()->post_parent ) : get_adjacent_post( false, '', true );
285
-	$next     = get_adjacent_post( false, '', false );
284
+	$previous = (is_attachment()) ? get_post(get_post()->post_parent) : get_adjacent_post(false, '', true);
285
+	$next     = get_adjacent_post(false, '', false);
286 286
 	$css      = '';
287 287
 
288
-	if ( is_attachment() && 'attachment' == $previous->post_type ) {
288
+	if (is_attachment() && 'attachment' == $previous->post_type) {
289 289
 		return;
290 290
 	}
291 291
 
292
-	if ( $previous &&  has_post_thumbnail( $previous->ID ) ) {
293
-		$prevthumb = wp_get_attachment_image_src( get_post_thumbnail_id( $previous->ID ), 'post-thumbnail' );
292
+	if ($previous && has_post_thumbnail($previous->ID)) {
293
+		$prevthumb = wp_get_attachment_image_src(get_post_thumbnail_id($previous->ID), 'post-thumbnail');
294 294
 		$css .= '
295
-			.post-navigation .nav-previous { background-image: url(' . esc_url( $prevthumb[0] ) . '); }
295
+			.post-navigation .nav-previous { background-image: url(' . esc_url($prevthumb[0]).'); }
296 296
 			.post-navigation .nav-previous .post-title, .post-navigation .nav-previous a:hover .post-title, .post-navigation .nav-previous .meta-nav { color: #fff; }
297 297
 			.post-navigation .nav-previous a:before { background-color: rgba(0, 0, 0, 0.4); }
298 298
 		';
299 299
 	}
300 300
 
301
-	if ( $next && has_post_thumbnail( $next->ID ) ) {
302
-		$nextthumb = wp_get_attachment_image_src( get_post_thumbnail_id( $next->ID ), 'post-thumbnail' );
301
+	if ($next && has_post_thumbnail($next->ID)) {
302
+		$nextthumb = wp_get_attachment_image_src(get_post_thumbnail_id($next->ID), 'post-thumbnail');
303 303
 		$css .= '
304
-			.post-navigation .nav-next { background-image: url(' . esc_url( $nextthumb[0] ) . '); border-top: 0; }
304
+			.post-navigation .nav-next { background-image: url(' . esc_url($nextthumb[0]).'); border-top: 0; }
305 305
 			.post-navigation .nav-next .post-title, .post-navigation .nav-next a:hover .post-title, .post-navigation .nav-next .meta-nav { color: #fff; }
306 306
 			.post-navigation .nav-next a:before { background-color: rgba(0, 0, 0, 0.4); }
307 307
 		';
308 308
 	}
309 309
 
310
-	wp_add_inline_style( 'twentyfifteen-style', $css );
310
+	wp_add_inline_style('twentyfifteen-style', $css);
311 311
 }
312
-add_action( 'wp_enqueue_scripts', 'twentyfifteen_post_nav_background' );
312
+add_action('wp_enqueue_scripts', 'twentyfifteen_post_nav_background');
313 313
 
314 314
 /**
315 315
  * Display descriptions in main navigation.
@@ -322,14 +322,14 @@  discard block
 block discarded – undo
322 322
  * @param array   $args        wp_nav_menu() arguments.
323 323
  * @return string Menu item with possible description.
324 324
  */
325
-function twentyfifteen_nav_description( $item_output, $item, $depth, $args ) {
326
-	if ( 'primary' == $args->theme_location && $item->description ) {
327
-		$item_output = str_replace( $args->link_after . '</a>', '<div class="menu-item-description">' . $item->description . '</div>' . $args->link_after . '</a>', $item_output );
325
+function twentyfifteen_nav_description($item_output, $item, $depth, $args) {
326
+	if ('primary' == $args->theme_location && $item->description) {
327
+		$item_output = str_replace($args->link_after.'</a>', '<div class="menu-item-description">'.$item->description.'</div>'.$args->link_after.'</a>', $item_output);
328 328
 	}
329 329
 
330 330
 	return $item_output;
331 331
 }
332
-add_filter( 'walker_nav_menu_start_el', 'twentyfifteen_nav_description', 10, 4 );
332
+add_filter('walker_nav_menu_start_el', 'twentyfifteen_nav_description', 10, 4);
333 333
 
334 334
 /**
335 335
  * Add a `screen-reader-text` class to the search form's submit button.
@@ -339,28 +339,28 @@  discard block
 block discarded – undo
339 339
  * @param string $html Search form HTML.
340 340
  * @return string Modified search form HTML.
341 341
  */
342
-function twentyfifteen_search_form_modify( $html ) {
343
-	return str_replace( 'class="search-submit"', 'class="search-submit screen-reader-text"', $html );
342
+function twentyfifteen_search_form_modify($html) {
343
+	return str_replace('class="search-submit"', 'class="search-submit screen-reader-text"', $html);
344 344
 }
345
-add_filter( 'get_search_form', 'twentyfifteen_search_form_modify' );
345
+add_filter('get_search_form', 'twentyfifteen_search_form_modify');
346 346
 
347 347
 /**
348 348
  * Implement the Custom Header feature.
349 349
  *
350 350
  * @since Twenty Fifteen 1.0
351 351
  */
352
-require get_template_directory() . '/inc/custom-header.php';
352
+require get_template_directory().'/inc/custom-header.php';
353 353
 
354 354
 /**
355 355
  * Custom template tags for this theme.
356 356
  *
357 357
  * @since Twenty Fifteen 1.0
358 358
  */
359
-require get_template_directory() . '/inc/template-tags.php';
359
+require get_template_directory().'/inc/template-tags.php';
360 360
 
361 361
 /**
362 362
  * Customizer additions.
363 363
  *
364 364
  * @since Twenty Fifteen 1.0
365 365
  */
366
-require get_template_directory() . '/inc/customizer.php';
366
+require get_template_directory().'/inc/customizer.php';
Please login to merge, or discard this patch.
src/wp-content/themes/twentyfifteen/content-link.php 3 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.
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 link post formats
4
- *
5
- * Used for both single and index/archive/search.
6
- *
7
- * @package WordPress
8
- * @subpackage Twenty_Fifteen
9
- * @since Twenty Fifteen 1.0
10
- */
3
+				 * The template for displaying link post formats
4
+				 *
5
+				 * Used for both single and index/archive/search.
6
+				 *
7
+				 * @package WordPress
8
+				 * @subpackage Twenty_Fifteen
9
+				 * @since Twenty Fifteen 1.0
10
+				 */
11 11
 ?>
12 12
 
13 13
 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
Please login to merge, or discard this patch.
src/wp-content/themes/twentyfifteen/page.php 1 patch
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.
src/wp-content/themes/twentyfifteen/search.php 3 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 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.
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.
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.