Completed
Push — master ( fdb3a7...cde0c6 )
by Stephen
20:18
created
src/wp-content/themes/twentyfifteen/archive.php 2 patches
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -21,39 +21,39 @@
 block discarded – undo
21 21
 	<section id="primary" class="content-area">
22 22
 		<main id="main" class="site-main" role="main">
23 23
 
24
-		<?php if ( have_posts() ) : ?>
24
+		<?php if (have_posts()) : ?>
25 25
 
26 26
 			<header class="page-header">
27 27
 				<?php
28
-					the_archive_title( '<h1 class="page-title">', '</h1>' );
29
-					the_archive_description( '<div class="taxonomy-description">', '</div>' );
28
+					the_archive_title('<h1 class="page-title">', '</h1>');
29
+					the_archive_description('<div class="taxonomy-description">', '</div>');
30 30
 				?>
31 31
 			</header><!-- .page-header -->
32 32
 
33 33
 			<?php
34 34
 			// Start the Loop.
35
-			while ( have_posts() ) : the_post();
35
+			while (have_posts()) : the_post();
36 36
 
37 37
 				/*
38 38
 				 * Include the Post-Format-specific template for the content.
39 39
 				 * If you want to override this in a child theme, then include a file
40 40
 				 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
41 41
 				 */
42
-				get_template_part( 'content', get_post_format() );
42
+				get_template_part('content', get_post_format());
43 43
 
44 44
 			// End the loop.
45 45
 			endwhile;
46 46
 
47 47
 			// Previous/next page navigation.
48
-			the_posts_pagination( array(
49
-				'prev_text'          => __( 'Previous page', 'twentyfifteen' ),
50
-				'next_text'          => __( 'Next page', 'twentyfifteen' ),
51
-				'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>',
52
-			) );
48
+			the_posts_pagination(array(
49
+				'prev_text'          => __('Previous page', 'twentyfifteen'),
50
+				'next_text'          => __('Next page', 'twentyfifteen'),
51
+				'before_page_number' => '<span class="meta-nav screen-reader-text">'.__('Page', 'twentyfifteen').' </span>',
52
+			));
53 53
 
54 54
 		// If no content, include the "No posts found" template.
55 55
 		else :
56
-			get_template_part( 'content', 'none' );
56
+			get_template_part('content', 'none');
57 57
 
58 58
 		endif;
59 59
 		?>
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/single.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -14,29 +14,29 @@
 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
 			 * Include the post format-specific template for the content. If you want to
21 21
 			 * use this in a child theme, then include a file called called content-___.php
22 22
 			 * (where ___ is the post format) and that will be used instead.
23 23
 			 */
24
-			get_template_part( 'content', get_post_format() );
24
+			get_template_part('content', get_post_format());
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
 
31 31
 			// Previous/next post navigation.
32
-			the_post_navigation( array(
33
-				'next_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Next', 'twentyfifteen' ) . '</span> ' .
34
-					'<span class="screen-reader-text">' . __( 'Next post:', 'twentyfifteen' ) . '</span> ' .
32
+			the_post_navigation(array(
33
+				'next_text' => '<span class="meta-nav" aria-hidden="true">'.__('Next', 'twentyfifteen').'</span> '.
34
+					'<span class="screen-reader-text">'.__('Next post:', 'twentyfifteen').'</span> '.
35 35
 					'<span class="post-title">%title</span>',
36
-				'prev_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Previous', 'twentyfifteen' ) . '</span> ' .
37
-					'<span class="screen-reader-text">' . __( 'Previous post:', 'twentyfifteen' ) . '</span> ' .
36
+				'prev_text' => '<span class="meta-nav" aria-hidden="true">'.__('Previous', 'twentyfifteen').'</span> '.
37
+					'<span class="screen-reader-text">'.__('Previous post:', 'twentyfifteen').'</span> '.
38 38
 					'<span class="post-title">%title</span>',
39
-			) );
39
+			));
40 40
 
41 41
 		// End the loop.
42 42
 		endwhile;
Please login to merge, or discard this patch.
src/wp-content/themes/twentyfifteen/content-page.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,23 +15,23 @@
 block discarded – undo
15 15
 	?>
16 16
 
17 17
 	<header class="entry-header">
18
-		<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
18
+		<?php the_title('<h1 class="entry-title">', '</h1>'); ?>
19 19
 	</header><!-- .entry-header -->
20 20
 
21 21
 	<div class="entry-content">
22 22
 		<?php the_content(); ?>
23 23
 		<?php
24
-			wp_link_pages( array(
25
-				'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfifteen' ) . '</span>',
24
+			wp_link_pages(array(
25
+				'before'      => '<div class="page-links"><span class="page-links-title">'.__('Pages:', 'twentyfifteen').'</span>',
26 26
 				'after'       => '</div>',
27 27
 				'link_before' => '<span>',
28 28
 				'link_after'  => '</span>',
29
-				'pagelink'    => '<span class="screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>%',
29
+				'pagelink'    => '<span class="screen-reader-text">'.__('Page', 'twentyfifteen').' </span>%',
30 30
 				'separator'   => '<span class="screen-reader-text">, </span>',
31
-			) );
31
+			));
32 32
 		?>
33 33
 	</div><!-- .entry-content -->
34 34
 
35
-	<?php edit_post_link( __( 'Edit', 'twentyfifteen' ), '<footer class="entry-footer"><span class="edit-link">', '</span></footer><!-- .entry-footer -->' ); ?>
35
+	<?php edit_post_link(__('Edit', 'twentyfifteen'), '<footer class="entry-footer"><span class="edit-link">', '</span></footer><!-- .entry-footer -->'); ?>
36 36
 
37 37
 </article><!-- #post-## -->
Please login to merge, or discard this patch.
src/wp-content/themes/twentyfifteen/404.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,11 +14,11 @@
 block discarded – undo
14 14
 
15 15
 			<section class="error-404 not-found">
16 16
 				<header class="page-header">
17
-					<h1 class="page-title"><?php _e( 'Oops! That page can&rsquo;t be found.', 'twentyfifteen' ); ?></h1>
17
+					<h1 class="page-title"><?php _e('Oops! That page can&rsquo;t be found.', 'twentyfifteen'); ?></h1>
18 18
 				</header><!-- .page-header -->
19 19
 
20 20
 				<div class="page-content">
21
-					<p><?php _e( 'It looks like nothing was found at this location. Maybe try a search?', 'twentyfifteen' ); ?></p>
21
+					<p><?php _e('It looks like nothing was found at this location. Maybe try a search?', 'twentyfifteen'); ?></p>
22 22
 
23 23
 					<?php get_search_form(); ?>
24 24
 				</div><!-- .page-content -->
Please login to merge, or discard this patch.
src/wp-content/themes/twentyfifteen/author-bio.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 ?>
10 10
 
11 11
 <div class="author-info">
12
-	<h2 class="author-heading"><?php _e( 'Published by', 'twentyfifteen' ); ?></h2>
12
+	<h2 class="author-heading"><?php _e('Published by', 'twentyfifteen'); ?></h2>
13 13
 	<div class="author-avatar">
14 14
 		<?php
15 15
 		/**
@@ -19,9 +19,9 @@  discard block
 block discarded – undo
19 19
 		 *
20 20
 		 * @param int $size The avatar height and width size in pixels.
21 21
 		 */
22
-		$author_bio_avatar_size = apply_filters( 'twentyfifteen_author_bio_avatar_size', 56 );
22
+		$author_bio_avatar_size = apply_filters('twentyfifteen_author_bio_avatar_size', 56);
23 23
 
24
-		echo get_avatar( get_the_author_meta( 'user_email' ), $author_bio_avatar_size );
24
+		echo get_avatar(get_the_author_meta('user_email'), $author_bio_avatar_size);
25 25
 		?>
26 26
 	</div><!-- .author-avatar -->
27 27
 
@@ -29,9 +29,9 @@  discard block
 block discarded – undo
29 29
 		<h3 class="author-title"><?php echo get_the_author(); ?></h3>
30 30
 
31 31
 		<p class="author-bio">
32
-			<?php the_author_meta( 'description' ); ?>
33
-			<a class="author-link" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
34
-				<?php printf( __( 'View all posts by %s', 'twentyfifteen' ), get_the_author() ); ?>
32
+			<?php the_author_meta('description'); ?>
33
+			<a class="author-link" href="<?php echo esc_url(get_author_posts_url(get_the_author_meta('ID'))); ?>" rel="author">
34
+				<?php printf(__('View all posts by %s', 'twentyfifteen'), get_the_author()); ?>
35 35
 			</a>
36 36
 		</p><!-- .author-bio -->
37 37
 
Please login to merge, or discard this patch.
src/wp-content/themes/twentyfifteen/content.php 2 patches
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -18,10 +18,10 @@  discard block
 block discarded – undo
18 18
 
19 19
 	<header class="entry-header">
20 20
 		<?php
21
-			if ( is_single() ) :
22
-				the_title( '<h1 class="entry-title">', '</h1>' );
21
+			if (is_single()) :
22
+				the_title('<h1 class="entry-title">', '</h1>');
23 23
 			else :
24
-				the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' );
24
+				the_title(sprintf('<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url(get_permalink())), '</a></h2>');
25 25
 			endif;
26 26
 		?>
27 27
 	</header><!-- .entry-header -->
@@ -29,32 +29,32 @@  discard block
 block discarded – undo
29 29
 	<div class="entry-content">
30 30
 		<?php
31 31
 			/* translators: %s: Name of current post */
32
-			the_content( sprintf(
33
-				__( 'Continue reading %s', 'twentyfifteen' ),
34
-				the_title( '<span class="screen-reader-text">', '</span>', false )
35
-			) );
32
+			the_content(sprintf(
33
+				__('Continue reading %s', 'twentyfifteen'),
34
+				the_title('<span class="screen-reader-text">', '</span>', false)
35
+			));
36 36
 
37
-			wp_link_pages( array(
38
-				'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfifteen' ) . '</span>',
37
+			wp_link_pages(array(
38
+				'before'      => '<div class="page-links"><span class="page-links-title">'.__('Pages:', 'twentyfifteen').'</span>',
39 39
 				'after'       => '</div>',
40 40
 				'link_before' => '<span>',
41 41
 				'link_after'  => '</span>',
42
-				'pagelink'    => '<span class="screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>%',
42
+				'pagelink'    => '<span class="screen-reader-text">'.__('Page', 'twentyfifteen').' </span>%',
43 43
 				'separator'   => '<span class="screen-reader-text">, </span>',
44
-			) );
44
+			));
45 45
 		?>
46 46
 	</div><!-- .entry-content -->
47 47
 
48 48
 	<?php
49 49
 		// Author bio.
50
-		if ( is_single() && get_the_author_meta( 'description' ) ) :
51
-			get_template_part( 'author-bio' );
50
+		if (is_single() && get_the_author_meta('description')) :
51
+			get_template_part('author-bio');
52 52
 		endif;
53 53
 	?>
54 54
 
55 55
 	<footer class="entry-footer">
56 56
 		<?php twentyfifteen_entry_meta(); ?>
57
-		<?php edit_post_link( __( 'Edit', 'twentyfifteen' ), '<span class="edit-link">', '</span>' ); ?>
57
+		<?php edit_post_link(__('Edit', 'twentyfifteen'), '<span class="edit-link">', '</span>'); ?>
58 58
 	</footer><!-- .entry-footer -->
59 59
 
60 60
 </article><!-- #post-## -->
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/comments.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -15,18 +15,18 @@  discard block
 block discarded – undo
15 15
  * the visitor has not yet entered the password we will
16 16
  * return early without loading the comments.
17 17
  */
18
-if ( post_password_required() ) {
18
+if (post_password_required()) {
19 19
 	return;
20 20
 }
21 21
 ?>
22 22
 
23 23
 <div id="comments" class="comments-area">
24 24
 
25
-	<?php if ( have_comments() ) : ?>
25
+	<?php if (have_comments()) : ?>
26 26
 		<h2 class="comments-title">
27 27
 			<?php
28
-				printf( _nx( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'comments title', 'twentyfifteen' ),
29
-					number_format_i18n( get_comments_number() ), get_the_title() );
28
+				printf(_nx('One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'comments title', 'twentyfifteen'),
29
+					number_format_i18n(get_comments_number()), get_the_title());
30 30
 			?>
31 31
 		</h2>
32 32
 
@@ -34,11 +34,11 @@  discard block
 block discarded – undo
34 34
 
35 35
 		<ol class="comment-list">
36 36
 			<?php
37
-				wp_list_comments( array(
37
+				wp_list_comments(array(
38 38
 					'style'       => 'ol',
39 39
 					'short_ping'  => true,
40 40
 					'avatar_size' => 56,
41
-				) );
41
+				));
42 42
 			?>
43 43
 		</ol><!-- .comment-list -->
44 44
 
@@ -48,9 +48,9 @@  discard block
 block discarded – undo
48 48
 
49 49
 	<?php
50 50
 		// If comments are closed and there are comments, let's leave a little note, shall we?
51
-		if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) :
51
+		if ( ! comments_open() && get_comments_number() && post_type_supports(get_post_type(), 'comments')) :
52 52
 	?>
53
-		<p class="no-comments"><?php _e( 'Comments are closed.', 'twentyfifteen' ); ?></p>
53
+		<p class="no-comments"><?php _e('Comments are closed.', 'twentyfifteen'); ?></p>
54 54
 	<?php endif; ?>
55 55
 
56 56
 	<?php comment_form(); ?>
Please login to merge, or discard this patch.
src/wp-content/themes/twentyfifteen/content-none.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -12,23 +12,23 @@
 block discarded – undo
12 12
 
13 13
 <section class="no-results not-found">
14 14
 	<header class="page-header">
15
-		<h1 class="page-title"><?php _e( 'Nothing Found', 'twentyfifteen' ); ?></h1>
15
+		<h1 class="page-title"><?php _e('Nothing Found', 'twentyfifteen'); ?></h1>
16 16
 	</header><!-- .page-header -->
17 17
 
18 18
 	<div class="page-content">
19 19
 
20
-		<?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
20
+		<?php if (is_home() && current_user_can('publish_posts')) : ?>
21 21
 
22
-			<p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'twentyfifteen' ), esc_url( admin_url( 'post-new.php' ) ) ); ?></p>
22
+			<p><?php printf(__('Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'twentyfifteen'), esc_url(admin_url('post-new.php'))); ?></p>
23 23
 
24
-		<?php elseif ( is_search() ) : ?>
24
+		<?php elseif (is_search()) : ?>
25 25
 
26
-			<p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'twentyfifteen' ); ?></p>
26
+			<p><?php _e('Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'twentyfifteen'); ?></p>
27 27
 			<?php get_search_form(); ?>
28 28
 
29 29
 		<?php else : ?>
30 30
 
31
-			<p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'twentyfifteen' ); ?></p>
31
+			<p><?php _e('It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'twentyfifteen'); ?></p>
32 32
 			<?php get_search_form(); ?>
33 33
 
34 34
 		<?php endif; ?>
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,9 +26,12 @@
 block discarded – undo
26 26
 			<p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'twentyfifteen' ); ?></p>
27 27
 			<?php get_search_form(); ?>
28 28
 
29
-		<?php else : ?>
29
+		<?php else {
30
+	: ?>
30 31
 
31
-			<p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'twentyfifteen' ); ?></p>
32
+			<p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'twentyfifteen' );
33
+}
34
+?></p>
32 35
 			<?php get_search_form(); ?>
33 36
 
34 37
 		<?php endif; ?>
Please login to merge, or discard this patch.
src/wp-content/themes/twentythirteen/content-quote.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -12,23 +12,23 @@
 block discarded – undo
12 12
 	<div class="entry-content">
13 13
 		<?php
14 14
 			/* translators: %s: Name of current post */
15
-			the_content( sprintf(
16
-				__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ),
17
-				the_title( '<span class="screen-reader-text">', '</span>', false )
18
-			) );
15
+			the_content(sprintf(
16
+				__('Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen'),
17
+				the_title('<span class="screen-reader-text">', '</span>', false)
18
+			));
19 19
 
20
-			wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) );
20
+			wp_link_pages(array('before' => '<div class="page-links"><span class="page-links-title">'.__('Pages:', 'twentythirteen').'</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>'));
21 21
 		?>
22 22
 	</div><!-- .entry-content -->
23 23
 
24 24
 	<footer class="entry-meta">
25 25
 		<?php twentythirteen_entry_meta(); ?>
26 26
 
27
-		<?php if ( comments_open() && ! is_single() ) : ?>
27
+		<?php if (comments_open() && ! is_single()) : ?>
28 28
 		<span class="comments-link">
29
-			<?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a comment', 'twentythirteen' ) . '</span>', __( 'One comment so far', 'twentythirteen' ), __( 'View all % comments', 'twentythirteen' ) ); ?>
29
+			<?php comments_popup_link('<span class="leave-reply">'.__('Leave a comment', 'twentythirteen').'</span>', __('One comment so far', 'twentythirteen'), __('View all % comments', 'twentythirteen')); ?>
30 30
 		</span><!-- .comments-link -->
31 31
 		<?php endif; // comments_open() ?>
32
-		<?php edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' ); ?>
32
+		<?php edit_post_link(__('Edit', 'twentythirteen'), '<span class="edit-link">', '</span>'); ?>
33 33
 	</footer><!-- .entry-meta -->
34 34
 </article><!-- #post -->
Please login to merge, or discard this patch.