Completed
Push — master ( d488ab...6453e7 )
by Stephen
53:31
created
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 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 default template for displaying content
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 default template for displaying content
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.
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
@@ -20,8 +20,10 @@
 block discarded – undo
20 20
 		<?php
21 21
 			if ( is_single() ) :
22 22
 				the_title( '<h1 class="entry-title">', '</h1>' );
23
-			else :
23
+			else {
24
+				:
24 25
 				the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' );
26
+			}
25 27
 			endif;
26 28
 		?>
27 29
 	</header><!-- .entry-header -->
Please login to merge, or discard this patch.
src/wp-content/themes/twentyfifteen/comments.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The template for displaying comments
4
- *
5
- * The area of the page that contains both current comments
6
- * and the comment form.
7
- *
8
- * @package WordPress
9
- * @subpackage Twenty_Fifteen
10
- * @since Twenty Fifteen 1.0
11
- */
3
+	 * The template for displaying comments
4
+	 *
5
+	 * The area of the page that contains both current comments
6
+	 * and the comment form.
7
+	 *
8
+	 * @package WordPress
9
+	 * @subpackage Twenty_Fifteen
10
+	 * @since Twenty Fifteen 1.0
11
+	 */
12 12
 
13 13
 /*
14 14
  * If the current post is protected by a password and
Please login to merge, or discard this 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 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 part for displaying a message that posts cannot be found
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 a message that posts cannot be found
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
 <section class="no-results not-found">
Please login to merge, or discard this patch.
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/footer.php 2 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 footer
4
- *
5
- * Contains footer content and the closing of the #main and #page div elements.
6
- *
7
- * @package WordPress
8
- * @subpackage Twenty_Thirteen
9
- * @since Twenty Thirteen 1.0
10
- */
3
+	 * The template for displaying the footer
4
+	 *
5
+	 * Contains footer content and the closing of the #main and #page div elements.
6
+	 *
7
+	 * @package WordPress
8
+	 * @subpackage Twenty_Thirteen
9
+	 * @since Twenty Thirteen 1.0
10
+	 */
11 11
 ?>
12 12
 
13 13
 		</div><!-- #main -->
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,11 +12,11 @@
 block discarded – undo
12 12
 
13 13
 		</div><!-- #main -->
14 14
 		<footer id="colophon" class="site-footer" role="contentinfo">
15
-			<?php get_sidebar( 'main' ); ?>
15
+			<?php get_sidebar('main'); ?>
16 16
 
17 17
 			<div class="site-info">
18
-				<?php do_action( 'twentythirteen_credits' ); ?>
19
-				<a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentythirteen' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentythirteen' ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentythirteen' ), 'WordPress' ); ?></a>
18
+				<?php do_action('twentythirteen_credits'); ?>
19
+				<a href="<?php echo esc_url(__('https://wordpress.org/', 'twentythirteen')); ?>" title="<?php esc_attr_e('Semantic Personal Publishing Platform', 'twentythirteen'); ?>"><?php printf(__('Proudly powered by %s', 'twentythirteen'), 'WordPress'); ?></a>
20 20
 			</div><!-- .site-info -->
21 21
 		</footer><!-- #colophon -->
22 22
 	</div><!-- #page -->
Please login to merge, or discard this patch.
src/wp-content/themes/twentythirteen/content-quote.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 template for displaying posts in the Quote post format
4
- *
5
- * @package WordPress
6
- * @subpackage Twenty_Thirteen
7
- * @since Twenty Thirteen 1.0
8
- */
3
+	 * The template for displaying posts in the Quote post format
4
+	 *
5
+	 * @package WordPress
6
+	 * @subpackage Twenty_Thirteen
7
+	 * @since Twenty Thirteen 1.0
8
+	 */
9 9
 ?>
10 10
 
11 11
 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
Please login to merge, or discard this 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.
src/wp-content/themes/twentythirteen/content-audio.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 posts in the Audio post format
4
- *
5
- * @package WordPress
6
- * @subpackage Twenty_Thirteen
7
- * @since Twenty Thirteen 1.0
8
- */
3
+		 * The template for displaying posts in the Audio post format
4
+		 *
5
+		 * @package WordPress
6
+		 * @subpackage Twenty_Thirteen
7
+		 * @since Twenty Thirteen 1.0
8
+		 */
9 9
 ?>
10 10
 
11 11
 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 
11 11
 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
12 12
 	<header class="entry-header">
13
-		<?php if ( is_single() ) : ?>
13
+		<?php if (is_single()) : ?>
14 14
 		<h1 class="entry-title"><?php the_title(); ?></h1>
15 15
 		<?php else : ?>
16 16
 		<h1 class="entry-title">
@@ -23,22 +23,22 @@  discard block
 block discarded – undo
23 23
 		<div class="audio-content">
24 24
 			<?php
25 25
 			/* translators: %s: Name of current post */
26
-			the_content( sprintf(
27
-				__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ),
28
-				the_title( '<span class="screen-reader-text">', '</span>', false )
29
-			) );
26
+			the_content(sprintf(
27
+				__('Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen'),
28
+				the_title('<span class="screen-reader-text">', '</span>', false)
29
+			));
30 30
 
31
-			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>' ) );
31
+			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>'));
32 32
 		?>
33 33
 		</div><!-- .audio-content -->
34 34
 	</div><!-- .entry-content -->
35 35
 
36 36
 	<footer class="entry-meta">
37 37
 		<?php twentythirteen_entry_meta(); ?>
38
-		<?php edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' ); ?>
38
+		<?php edit_post_link(__('Edit', 'twentythirteen'), '<span class="edit-link">', '</span>'); ?>
39 39
 
40
-		<?php if ( is_single() && get_the_author_meta( 'description' ) && is_multi_author() ) : ?>
41
-			<?php get_template_part( 'author-bio' ); ?>
40
+		<?php if (is_single() && get_the_author_meta('description') && is_multi_author()) : ?>
41
+			<?php get_template_part('author-bio'); ?>
42 42
 		<?php endif; ?>
43 43
 	</footer><!-- .entry-meta -->
44 44
 </article><!-- #post -->
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,9 +12,12 @@
 block discarded – undo
12 12
 	<header class="entry-header">
13 13
 		<?php if ( is_single() ) : ?>
14 14
 		<h1 class="entry-title"><?php the_title(); ?></h1>
15
-		<?php else : ?>
15
+		<?php else {
16
+	: ?>
16 17
 		<h1 class="entry-title">
17
-			<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
18
+			<a href="<?php the_permalink();
19
+}
20
+?>" rel="bookmark"><?php the_title(); ?></a>
18 21
 		</h1>
19 22
 		<?php endif; // is_single() ?>
20 23
 	</header><!-- .entry-header -->
Please login to merge, or discard this patch.
src/wp-content/themes/twentythirteen/image.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 image attachments
4
- *
5
- * @link https://codex.wordpress.org/Template_Hierarchy
6
- *
7
- * @package WordPress
8
- * @subpackage Twenty_Thirteen
9
- * @since Twenty Thirteen 1.0
10
- */
3
+		 * The template for displaying image attachments
4
+		 *
5
+		 * @link https://codex.wordpress.org/Template_Hierarchy
6
+		 *
7
+		 * @package WordPress
8
+		 * @subpackage Twenty_Thirteen
9
+		 * @since Twenty Thirteen 1.0
10
+		 */
11 11
 
12 12
 get_header(); ?>
13 13
 
Please login to merge, or discard this patch.
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -13,50 +13,50 @@  discard block
 block discarded – undo
13 13
 
14 14
 	<div id="primary" class="content-area">
15 15
 		<div id="content" class="site-content" role="main">
16
-			<article id="post-<?php the_ID(); ?>" <?php post_class( 'image-attachment' ); ?>>
16
+			<article id="post-<?php the_ID(); ?>" <?php post_class('image-attachment'); ?>>
17 17
 				<header class="entry-header">
18 18
 					<h1 class="entry-title"><?php the_title(); ?></h1>
19 19
 
20 20
 					<div class="entry-meta">
21 21
 						<?php
22
-							$published_text = __( '<span class="attachment-meta">Published on <time class="entry-date" datetime="%1$s">%2$s</time> in <a href="%3$s" title="Return to %4$s" rel="gallery">%5$s</a></span>', 'twentythirteen' );
23
-							$post_title = get_the_title( $post->post_parent );
24
-							if ( empty( $post_title ) || 0 == $post->post_parent )
22
+							$published_text = __('<span class="attachment-meta">Published on <time class="entry-date" datetime="%1$s">%2$s</time> in <a href="%3$s" title="Return to %4$s" rel="gallery">%5$s</a></span>', 'twentythirteen');
23
+							$post_title = get_the_title($post->post_parent);
24
+							if (empty($post_title) || 0 == $post->post_parent)
25 25
 								$published_text = '<span class="attachment-meta"><time class="entry-date" datetime="%1$s">%2$s</time></span>';
26 26
 
27
-							printf( $published_text,
28
-								esc_attr( get_the_date( 'c' ) ),
29
-								esc_html( get_the_date() ),
30
-								esc_url( get_permalink( $post->post_parent ) ),
31
-								esc_attr( strip_tags( $post_title ) ),
27
+							printf($published_text,
28
+								esc_attr(get_the_date('c')),
29
+								esc_html(get_the_date()),
30
+								esc_url(get_permalink($post->post_parent)),
31
+								esc_attr(strip_tags($post_title)),
32 32
 								$post_title
33 33
 							);
34 34
 
35 35
 							$metadata = wp_get_attachment_metadata();
36
-							printf( '<span class="attachment-meta full-size-link"><a href="%1$s" title="%2$s">%3$s (%4$s &times; %5$s)</a></span>',
37
-								esc_url( wp_get_attachment_url() ),
38
-								esc_attr__( 'Link to full-size image', 'twentythirteen' ),
39
-								__( 'Full resolution', 'twentythirteen' ),
36
+							printf('<span class="attachment-meta full-size-link"><a href="%1$s" title="%2$s">%3$s (%4$s &times; %5$s)</a></span>',
37
+								esc_url(wp_get_attachment_url()),
38
+								esc_attr__('Link to full-size image', 'twentythirteen'),
39
+								__('Full resolution', 'twentythirteen'),
40 40
 								$metadata['width'],
41 41
 								$metadata['height']
42 42
 							);
43 43
 
44
-							edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' );
44
+							edit_post_link(__('Edit', 'twentythirteen'), '<span class="edit-link">', '</span>');
45 45
 						?>
46 46
 					</div><!-- .entry-meta -->
47 47
 				</header><!-- .entry-header -->
48 48
 
49 49
 				<div class="entry-content">
50 50
 					<nav id="image-navigation" class="navigation image-navigation" role="navigation">
51
-						<span class="nav-previous"><?php previous_image_link( false, __( '<span class="meta-nav">&larr;</span> Previous', 'twentythirteen' ) ); ?></span>
52
-						<span class="nav-next"><?php next_image_link( false, __( 'Next <span class="meta-nav">&rarr;</span>', 'twentythirteen' ) ); ?></span>
51
+						<span class="nav-previous"><?php previous_image_link(false, __('<span class="meta-nav">&larr;</span> Previous', 'twentythirteen')); ?></span>
52
+						<span class="nav-next"><?php next_image_link(false, __('Next <span class="meta-nav">&rarr;</span>', 'twentythirteen')); ?></span>
53 53
 					</nav><!-- #image-navigation -->
54 54
 
55 55
 					<div class="entry-attachment">
56 56
 						<div class="attachment">
57 57
 							<?php twentythirteen_the_attached_image(); ?>
58 58
 
59
-							<?php if ( has_excerpt() ) : ?>
59
+							<?php if (has_excerpt()) : ?>
60 60
 							<div class="entry-caption">
61 61
 								<?php the_excerpt(); ?>
62 62
 							</div>
@@ -64,10 +64,10 @@  discard block
 block discarded – undo
64 64
 						</div><!-- .attachment -->
65 65
 					</div><!-- .entry-attachment -->
66 66
 
67
-					<?php if ( ! empty( $post->post_content ) ) : ?>
67
+					<?php if ( ! empty($post->post_content)) : ?>
68 68
 					<div class="entry-description">
69 69
 						<?php the_content(); ?>
70
-						<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentythirteen' ), 'after' => '</div>' ) ); ?>
70
+						<?php wp_link_pages(array('before' => '<div class="page-links">'.__('Pages:', 'twentythirteen'), 'after' => '</div>')); ?>
71 71
 					</div><!-- .entry-description -->
72 72
 					<?php endif; ?>
73 73
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,9 @@
 block discarded – undo
21 21
 						<?php
22 22
 							$published_text = __( '<span class="attachment-meta">Published on <time class="entry-date" datetime="%1$s">%2$s</time> in <a href="%3$s" title="Return to %4$s" rel="gallery">%5$s</a></span>', 'twentythirteen' );
23 23
 							$post_title = get_the_title( $post->post_parent );
24
-							if ( empty( $post_title ) || 0 == $post->post_parent )
25
-								$published_text = '<span class="attachment-meta"><time class="entry-date" datetime="%1$s">%2$s</time></span>';
24
+							if ( empty( $post_title ) || 0 == $post->post_parent ) {
25
+															$published_text = '<span class="attachment-meta"><time class="entry-date" datetime="%1$s">%2$s</time></span>';
26
+							}
26 27
 
27 28
 							printf( $published_text,
28 29
 								esc_attr( get_the_date( 'c' ) ),
Please login to merge, or discard this patch.
src/wp-content/themes/twentythirteen/content-gallery.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 posts in the Gallery post format
4
- *
5
- * @package WordPress
6
- * @subpackage Twenty_Thirteen
7
- * @since Twenty Thirteen 1.0
8
- */
3
+						 * The template for displaying posts in the Gallery post format
4
+						 *
5
+						 * @package WordPress
6
+						 * @subpackage Twenty_Thirteen
7
+						 * @since Twenty Thirteen 1.0
8
+						 */
9 9
 ?>
10 10
 
11 11
 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 
11 11
 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
12 12
 	<header class="entry-header">
13
-		<?php if ( is_single() ) : ?>
13
+		<?php if (is_single()) : ?>
14 14
 		<h1 class="entry-title"><?php the_title(); ?></h1>
15 15
 		<?php else : ?>
16 16
 		<h1 class="entry-title">
@@ -20,15 +20,15 @@  discard block
 block discarded – undo
20 20
 	</header><!-- .entry-header -->
21 21
 
22 22
 	<div class="entry-content">
23
-		<?php if ( is_single() || ! get_post_gallery() ) : ?>
23
+		<?php if (is_single() || ! get_post_gallery()) : ?>
24 24
 			<?php
25 25
 			/* translators: %s: Name of current post */
26
-			the_content( sprintf(
27
-				__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ),
28
-				the_title( '<span class="screen-reader-text">', '</span>', false )
29
-			) );
26
+			the_content(sprintf(
27
+				__('Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen'),
28
+				the_title('<span class="screen-reader-text">', '</span>', false)
29
+			));
30 30
 
31
-			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>' ) );
31
+			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>'));
32 32
 		?>
33 33
 		<?php else : ?>
34 34
 			<?php echo get_post_gallery(); ?>
@@ -38,15 +38,15 @@  discard block
 block discarded – undo
38 38
 	<footer class="entry-meta">
39 39
 		<?php twentythirteen_entry_meta(); ?>
40 40
 
41
-		<?php if ( comments_open() && ! is_single() ) : ?>
41
+		<?php if (comments_open() && ! is_single()) : ?>
42 42
 		<span class="comments-link">
43
-			<?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a comment', 'twentythirteen' ) . '</span>', __( 'One comment so far', 'twentythirteen' ), __( 'View all % comments', 'twentythirteen' ) ); ?>
43
+			<?php comments_popup_link('<span class="leave-reply">'.__('Leave a comment', 'twentythirteen').'</span>', __('One comment so far', 'twentythirteen'), __('View all % comments', 'twentythirteen')); ?>
44 44
 		</span><!-- .comments-link -->
45 45
 		<?php endif; // comments_open() ?>
46
-		<?php edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' ); ?>
46
+		<?php edit_post_link(__('Edit', 'twentythirteen'), '<span class="edit-link">', '</span>'); ?>
47 47
 
48
-		<?php if ( is_single() && get_the_author_meta( 'description' ) && is_multi_author() ) : ?>
49
-			<?php get_template_part( 'author-bio' ); ?>
48
+		<?php if (is_single() && get_the_author_meta('description') && is_multi_author()) : ?>
49
+			<?php get_template_part('author-bio'); ?>
50 50
 		<?php endif; ?>
51 51
 	</footer><!-- .entry-meta -->
52 52
 </article><!-- #post -->
Please login to merge, or discard this patch.
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,9 +12,12 @@  discard block
 block discarded – undo
12 12
 	<header class="entry-header">
13 13
 		<?php if ( is_single() ) : ?>
14 14
 		<h1 class="entry-title"><?php the_title(); ?></h1>
15
-		<?php else : ?>
15
+		<?php else {
16
+	: ?>
16 17
 		<h1 class="entry-title">
17
-			<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
18
+			<a href="<?php the_permalink();
19
+}
20
+?>" rel="bookmark"><?php the_title(); ?></a>
18 21
 		</h1>
19 22
 		<?php endif; // is_single() ?>
20 23
 	</header><!-- .entry-header -->
@@ -30,8 +33,11 @@  discard block
 block discarded – undo
30 33
 
31 34
 			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>' ) );
32 35
 		?>
33
-		<?php else : ?>
34
-			<?php echo get_post_gallery(); ?>
36
+		<?php else {
37
+	: ?>
38
+			<?php echo get_post_gallery();
39
+}
40
+?>
35 41
 		<?php endif; // is_single() ?>
36 42
 	</div><!-- .entry-content -->
37 43
 
Please login to merge, or discard this patch.