Completed
Push — master ( d99bf9...491baf )
by Stephen
13:47
created
src/wp-content/themes/twentytwelve/content-aside.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,17 +12,17 @@
 block discarded – undo
12 12
 		<div class="aside">
13 13
 			<h1 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
14 14
 			<div class="entry-content">
15
-				<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentytwelve' ) ); ?>
15
+				<?php the_content(__('Continue reading <span class="meta-nav">&rarr;</span>', 'twentytwelve')); ?>
16 16
 			</div><!-- .entry-content -->
17 17
 		</div><!-- .aside -->
18 18
 
19 19
 		<footer class="entry-meta">
20
-			<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a>
21
-			<?php if ( comments_open() ) : ?>
20
+			<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr(sprintf(__('Permalink to %s', 'twentytwelve'), the_title_attribute('echo=0'))); ?>" rel="bookmark"><?php echo get_the_date(); ?></a>
21
+			<?php if (comments_open()) : ?>
22 22
 			<div class="comments-link">
23
-				<?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
23
+				<?php comments_popup_link('<span class="leave-reply">'.__('Leave a reply', 'twentytwelve').'</span>', __('1 Reply', 'twentytwelve'), __('% Replies', 'twentytwelve')); ?>
24 24
 			</div><!-- .comments-link -->
25 25
 			<?php endif; // comments_open() ?>
26
-			<?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
26
+			<?php edit_post_link(__('Edit', 'twentytwelve'), '<span class="edit-link">', '</span>'); ?>
27 27
 		</footer><!-- .entry-meta -->
28 28
 	</article><!-- #post -->
Please login to merge, or discard this patch.
src/wp-content/themes/twentytwelve/category.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -16,32 +16,32 @@
 block discarded – undo
16 16
 	<section id="primary" class="site-content">
17 17
 		<div id="content" role="main">
18 18
 
19
-		<?php if ( have_posts() ) : ?>
19
+		<?php if (have_posts()) : ?>
20 20
 			<header class="archive-header">
21
-				<h1 class="archive-title"><?php printf( __( 'Category Archives: %s', 'twentytwelve' ), '<span>' . single_cat_title( '', false ) . '</span>' ); ?></h1>
21
+				<h1 class="archive-title"><?php printf(__('Category Archives: %s', 'twentytwelve'), '<span>'.single_cat_title('', false).'</span>'); ?></h1>
22 22
 
23
-			<?php if ( category_description() ) : // Show an optional category description ?>
23
+			<?php if (category_description()) : // Show an optional category description ?>
24 24
 				<div class="archive-meta"><?php echo category_description(); ?></div>
25 25
 			<?php endif; ?>
26 26
 			</header><!-- .archive-header -->
27 27
 
28 28
 			<?php
29 29
 			/* Start the Loop */
30
-			while ( have_posts() ) : the_post();
30
+			while (have_posts()) : the_post();
31 31
 
32 32
 				/* Include the post format-specific template for the content. If you want to
33 33
 				 * this in a child theme then include a file called called content-___.php
34 34
 				 * (where ___ is the post format) and that will be used instead.
35 35
 				 */
36
-				get_template_part( 'content', get_post_format() );
36
+				get_template_part('content', get_post_format());
37 37
 
38 38
 			endwhile;
39 39
 
40
-			twentytwelve_content_nav( 'nav-below' );
40
+			twentytwelve_content_nav('nav-below');
41 41
 			?>
42 42
 
43 43
 		<?php else : ?>
44
-			<?php get_template_part( 'content', 'none' ); ?>
44
+			<?php get_template_part('content', 'none'); ?>
45 45
 		<?php endif; ?>
46 46
 
47 47
 		</div><!-- #content -->
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,8 +40,11 @@
 block discarded – undo
40 40
 			twentytwelve_content_nav( 'nav-below' );
41 41
 			?>
42 42
 
43
-		<?php else : ?>
44
-			<?php get_template_part( 'content', 'none' ); ?>
43
+		<?php else {
44
+	: ?>
45
+			<?php get_template_part( 'content', 'none' );
46
+}
47
+?>
45 48
 		<?php endif; ?>
46 49
 
47 50
 		</div><!-- #content -->
Please login to merge, or discard this patch.
src/wp-content/themes/twentytwelve/content-link.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -9,18 +9,18 @@
 block discarded – undo
9 9
 ?>
10 10
 
11 11
 	<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
12
-		<header><?php _e( 'Link', 'twentytwelve' ); ?></header>
12
+		<header><?php _e('Link', 'twentytwelve'); ?></header>
13 13
 		<div class="entry-content">
14
-			<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentytwelve' ) ); ?>
14
+			<?php the_content(__('Continue reading <span class="meta-nav">&rarr;</span>', 'twentytwelve')); ?>
15 15
 		</div><!-- .entry-content -->
16 16
 
17 17
 		<footer class="entry-meta">
18
-			<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a>
19
-			<?php if ( comments_open() ) : ?>
18
+			<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr(sprintf(__('Permalink to %s', 'twentytwelve'), the_title_attribute('echo=0'))); ?>" rel="bookmark"><?php echo get_the_date(); ?></a>
19
+			<?php if (comments_open()) : ?>
20 20
 			<div class="comments-link">
21
-				<?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
21
+				<?php comments_popup_link('<span class="leave-reply">'.__('Leave a reply', 'twentytwelve').'</span>', __('1 Reply', 'twentytwelve'), __('% Replies', 'twentytwelve')); ?>
22 22
 			</div><!-- .comments-link -->
23 23
 			<?php endif; // comments_open() ?>
24
-			<?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
24
+			<?php edit_post_link(__('Edit', 'twentytwelve'), '<span class="edit-link">', '</span>'); ?>
25 25
 		</footer><!-- .entry-meta -->
26 26
 	</article><!-- #post -->
Please login to merge, or discard this patch.
src/wp-content/themes/twentytwelve/content-image.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -10,19 +10,19 @@
 block discarded – undo
10 10
 
11 11
 	<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
12 12
 		<div class="entry-content">
13
-			<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentytwelve' ) ); ?>
13
+			<?php the_content(__('Continue reading <span class="meta-nav">&rarr;</span>', 'twentytwelve')); ?>
14 14
 		</div><!-- .entry-content -->
15 15
 
16 16
 		<footer class="entry-meta">
17 17
 			<a href="<?php the_permalink(); ?>" rel="bookmark">
18 18
 				<h1><?php the_title(); ?></h1>
19
-				<h2><time class="entry-date" datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>"><?php echo get_the_date(); ?></time></h2>
19
+				<h2><time class="entry-date" datetime="<?php echo esc_attr(get_the_date('c')); ?>"><?php echo get_the_date(); ?></time></h2>
20 20
 			</a>
21
-			<?php if ( comments_open() ) : ?>
21
+			<?php if (comments_open()) : ?>
22 22
 			<div class="comments-link">
23
-				<?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
23
+				<?php comments_popup_link('<span class="leave-reply">'.__('Leave a reply', 'twentytwelve').'</span>', __('1 Reply', 'twentytwelve'), __('% Replies', 'twentytwelve')); ?>
24 24
 			</div><!-- .comments-link -->
25 25
 			<?php endif; // comments_open() ?>
26
-			<?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
26
+			<?php edit_post_link(__('Edit', 'twentytwelve'), '<span class="edit-link">', '</span>'); ?>
27 27
 		</footer><!-- .entry-meta -->
28 28
 	</article><!-- #post -->
Please login to merge, or discard this patch.
src/wp-content/themes/twentytwelve/search.php 2 patches
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -12,30 +12,30 @@
 block discarded – undo
12 12
 	<section id="primary" class="site-content">
13 13
 		<div id="content" 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', 'twentytwelve' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
18
+				<h1 class="page-title"><?php printf(__('Search Results for: %s', 'twentytwelve'), '<span>'.get_search_query().'</span>'); ?></h1>
19 19
 			</header>
20 20
 
21
-			<?php twentytwelve_content_nav( 'nav-above' ); ?>
21
+			<?php twentytwelve_content_nav('nav-above'); ?>
22 22
 
23 23
 			<?php /* Start the Loop */ ?>
24
-			<?php while ( have_posts() ) : the_post(); ?>
25
-				<?php get_template_part( 'content', get_post_format() ); ?>
24
+			<?php while (have_posts()) : the_post(); ?>
25
+				<?php get_template_part('content', get_post_format()); ?>
26 26
 			<?php endwhile; ?>
27 27
 
28
-			<?php twentytwelve_content_nav( 'nav-below' ); ?>
28
+			<?php twentytwelve_content_nav('nav-below'); ?>
29 29
 
30 30
 		<?php else : ?>
31 31
 
32 32
 			<article id="post-0" class="post no-results not-found">
33 33
 				<header class="entry-header">
34
-					<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentytwelve' ); ?></h1>
34
+					<h1 class="entry-title"><?php _e('Nothing Found', 'twentytwelve'); ?></h1>
35 35
 				</header>
36 36
 
37 37
 				<div class="entry-content">
38
-					<p><?php _e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'twentytwelve' ); ?></p>
38
+					<p><?php _e('Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'twentytwelve'); ?></p>
39 39
 					<?php get_search_form(); ?>
40 40
 				</div><!-- .entry-content -->
41 41
 			</article><!-- #post-0 -->
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,11 +27,14 @@
 block discarded – undo
27 27
 
28 28
 			<?php twentytwelve_content_nav( 'nav-below' ); ?>
29 29
 
30
-		<?php else : ?>
30
+		<?php else {
31
+	: ?>
31 32
 
32 33
 			<article id="post-0" class="post no-results not-found">
33 34
 				<header class="entry-header">
34
-					<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentytwelve' ); ?></h1>
35
+					<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentytwelve' );
36
+}
37
+?></h1>
35 38
 				</header>
36 39
 
37 40
 				<div class="entry-content">
Please login to merge, or discard this patch.
src/wp-content/themes/twentytwelve/tag.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -16,33 +16,33 @@
 block discarded – undo
16 16
 	<section id="primary" class="site-content">
17 17
 		<div id="content" role="main">
18 18
 
19
-		<?php if ( have_posts() ) : ?>
19
+		<?php if (have_posts()) : ?>
20 20
 			<header class="archive-header">
21
-				<h1 class="archive-title"><?php printf( __( 'Tag Archives: %s', 'twentytwelve' ), '<span>' . single_tag_title( '', false ) . '</span>' ); ?></h1>
21
+				<h1 class="archive-title"><?php printf(__('Tag Archives: %s', 'twentytwelve'), '<span>'.single_tag_title('', false).'</span>'); ?></h1>
22 22
 
23
-			<?php if ( tag_description() ) : // Show an optional tag description ?>
23
+			<?php if (tag_description()) : // Show an optional tag description ?>
24 24
 				<div class="archive-meta"><?php echo tag_description(); ?></div>
25 25
 			<?php endif; ?>
26 26
 			</header><!-- .archive-header -->
27 27
 
28 28
 			<?php
29 29
 			/* Start the Loop */
30
-			while ( have_posts() ) : the_post();
30
+			while (have_posts()) : the_post();
31 31
 
32 32
 				/*
33 33
 				 * Include the post format-specific template for the content. If you want to
34 34
 				 * this in a child theme then include a file called called content-___.php
35 35
 				 * (where ___ is the post format) and that will be used instead.
36 36
 				 */
37
-				get_template_part( 'content', get_post_format() );
37
+				get_template_part('content', get_post_format());
38 38
 
39 39
 			endwhile;
40 40
 
41
-			twentytwelve_content_nav( 'nav-below' );
41
+			twentytwelve_content_nav('nav-below');
42 42
 			?>
43 43
 
44 44
 		<?php else : ?>
45
-			<?php get_template_part( 'content', 'none' ); ?>
45
+			<?php get_template_part('content', 'none'); ?>
46 46
 		<?php endif; ?>
47 47
 
48 48
 		</div><!-- #content -->
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,8 +40,11 @@
 block discarded – undo
40 40
 			twentytwelve_content_nav( 'nav-below' );
41 41
 			?>
42 42
 
43
-		<?php else : ?>
44
-			<?php get_template_part( 'content', 'none' ); ?>
43
+		<?php else {
44
+	: ?>
45
+			<?php get_template_part( 'content', 'none' );
46
+}
47
+?>
45 48
 		<?php endif; ?>
46 49
 
47 50
 		</div><!-- #content -->
Please login to merge, or discard this patch.
src/wp-content/themes/twentytwelve/inc/custom-header.php 2 patches
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -43,9 +43,9 @@  discard block
 block discarded – undo
43 43
 		'admin-preview-callback' => 'twentytwelve_admin_header_image',
44 44
 	);
45 45
 
46
-	add_theme_support( 'custom-header', $args );
46
+	add_theme_support('custom-header', $args);
47 47
 }
48
-add_action( 'after_setup_theme', 'twentytwelve_custom_header_setup' );
48
+add_action('after_setup_theme', 'twentytwelve_custom_header_setup');
49 49
 
50 50
 /**
51 51
  * Load our special font CSS file.
@@ -54,10 +54,10 @@  discard block
 block discarded – undo
54 54
  */
55 55
 function twentytwelve_custom_header_fonts() {
56 56
 	$font_url = twentytwelve_get_font_url();
57
-	if ( ! empty( $font_url ) )
58
-		wp_enqueue_style( 'twentytwelve-fonts', esc_url_raw( $font_url ), array(), null );
57
+	if ( ! empty($font_url))
58
+		wp_enqueue_style('twentytwelve-fonts', esc_url_raw($font_url), array(), null);
59 59
 }
60
-add_action( 'admin_print_styles-appearance_page_custom-header', 'twentytwelve_custom_header_fonts' );
60
+add_action('admin_print_styles-appearance_page_custom-header', 'twentytwelve_custom_header_fonts');
61 61
 
62 62
 /**
63 63
  * Style the header text displayed on the blog.
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 	$text_color = get_header_textcolor();
71 71
 
72 72
 	// If no custom options for text are set, let's bail
73
-	if ( $text_color == get_theme_support( 'custom-header', 'default-text-color' ) )
73
+	if ($text_color == get_theme_support('custom-header', 'default-text-color'))
74 74
 		return;
75 75
 
76 76
 	// If we get this far, we have custom styles.
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 	<style type="text/css" id="twentytwelve-header-css">
79 79
 	<?php
80 80
 		// Has the text been hidden?
81
-		if ( ! display_header_text() ) :
81
+		if ( ! display_header_text()) :
82 82
 	?>
83 83
 		.site-title,
84 84
 		.site-description {
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 		margin-bottom: 24px;
134 134
 	}
135 135
 	#headimg img {
136
-		max-width: <?php echo get_theme_support( 'custom-header', 'max-width' ); ?>px;
136
+		max-width: <?php echo get_theme_support('custom-header', 'max-width'); ?>px;
137 137
 	}
138 138
 	</style>
139 139
 <?php
@@ -147,17 +147,17 @@  discard block
 block discarded – undo
147 147
  * @since Twenty Twelve 1.0
148 148
  */
149 149
 function twentytwelve_admin_header_image() {
150
-	$style = 'color: #' . get_header_textcolor() . ';';
151
-	if ( ! display_header_text() ) {
150
+	$style = 'color: #'.get_header_textcolor().';';
151
+	if ( ! display_header_text()) {
152 152
 		$style = 'display: none;';
153 153
 	}
154 154
 	?>
155 155
 	<div id="headimg">
156
-		<h1 class="displaying-header-text"><a id="name" style="<?php echo esc_attr( $style ); ?>" onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
157
-		<h2 id="desc" class="displaying-header-text" style="<?php echo esc_attr( $style ); ?>"><?php bloginfo( 'description' ); ?></h2>
156
+		<h1 class="displaying-header-text"><a id="name" style="<?php echo esc_attr($style); ?>" onclick="return false;" href="<?php echo esc_url(home_url('/')); ?>"><?php bloginfo('name'); ?></a></h1>
157
+		<h2 id="desc" class="displaying-header-text" style="<?php echo esc_attr($style); ?>"><?php bloginfo('description'); ?></h2>
158 158
 		<?php $header_image = get_header_image();
159
-		if ( ! empty( $header_image ) ) : ?>
160
-			<img src="<?php echo esc_url( $header_image ); ?>" class="header-image" width="<?php echo esc_attr( get_custom_header()->width ); ?>" height="<?php echo esc_attr( get_custom_header()->height ); ?>" alt="" />
159
+		if ( ! empty($header_image)) : ?>
160
+			<img src="<?php echo esc_url($header_image); ?>" class="header-image" width="<?php echo esc_attr(get_custom_header()->width); ?>" height="<?php echo esc_attr(get_custom_header()->height); ?>" alt="" />
161 161
 		<?php endif; ?>
162 162
 	</div>
163 163
 <?php }
Please login to merge, or discard this patch.
Braces   +12 added lines, -7 removed lines patch added patch discarded remove patch
@@ -54,9 +54,10 @@  discard block
 block discarded – undo
54 54
  */
55 55
 function twentytwelve_custom_header_fonts() {
56 56
 	$font_url = twentytwelve_get_font_url();
57
-	if ( ! empty( $font_url ) )
58
-		wp_enqueue_style( 'twentytwelve-fonts', esc_url_raw( $font_url ), array(), null );
59
-}
57
+	if ( ! empty( $font_url ) ) {
58
+			wp_enqueue_style( 'twentytwelve-fonts', esc_url_raw( $font_url ), array(), null );
59
+	}
60
+	}
60 61
 add_action( 'admin_print_styles-appearance_page_custom-header', 'twentytwelve_custom_header_fonts' );
61 62
 
62 63
 /**
@@ -70,8 +71,9 @@  discard block
 block discarded – undo
70 71
 	$text_color = get_header_textcolor();
71 72
 
72 73
 	// If no custom options for text are set, let's bail
73
-	if ( $text_color == get_theme_support( 'custom-header', 'default-text-color' ) )
74
-		return;
74
+	if ( $text_color == get_theme_support( 'custom-header', 'default-text-color' ) ) {
75
+			return;
76
+	}
75 77
 
76 78
 	// If we get this far, we have custom styles.
77 79
 	?>
@@ -88,11 +90,14 @@  discard block
 block discarded – undo
88 90
 		}
89 91
 	<?php
90 92
 		// If the user has set a custom color for the text, use that.
91
-		else :
93
+		else {
94
+			:
92 95
 	?>
93 96
 		.site-header h1 a,
94 97
 		.site-header h2 {
95
-			color: #<?php echo $text_color; ?>;
98
+			color: #<?php echo $text_color;
99
+		}
100
+		?>;
96 101
 		}
97 102
 	<?php endif; ?>
98 103
 	</style>
Please login to merge, or discard this patch.
src/wp-content/themes/twentytwelve/archive.php 2 patches
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -22,38 +22,38 @@
 block discarded – undo
22 22
 	<section id="primary" class="site-content">
23 23
 		<div id="content" role="main">
24 24
 
25
-		<?php if ( have_posts() ) : ?>
25
+		<?php if (have_posts()) : ?>
26 26
 			<header class="archive-header">
27 27
 				<h1 class="archive-title"><?php
28
-					if ( is_day() ) :
29
-						printf( __( 'Daily Archives: %s', 'twentytwelve' ), '<span>' . get_the_date() . '</span>' );
30
-					elseif ( is_month() ) :
31
-						printf( __( 'Monthly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentytwelve' ) ) . '</span>' );
32
-					elseif ( is_year() ) :
33
-						printf( __( 'Yearly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentytwelve' ) ) . '</span>' );
28
+					if (is_day()) :
29
+						printf(__('Daily Archives: %s', 'twentytwelve'), '<span>'.get_the_date().'</span>');
30
+					elseif (is_month()) :
31
+						printf(__('Monthly Archives: %s', 'twentytwelve'), '<span>'.get_the_date(_x('F Y', 'monthly archives date format', 'twentytwelve')).'</span>');
32
+					elseif (is_year()) :
33
+						printf(__('Yearly Archives: %s', 'twentytwelve'), '<span>'.get_the_date(_x('Y', 'yearly archives date format', 'twentytwelve')).'</span>');
34 34
 					else :
35
-						_e( 'Archives', 'twentytwelve' );
35
+						_e('Archives', 'twentytwelve');
36 36
 					endif;
37 37
 				?></h1>
38 38
 			</header><!-- .archive-header -->
39 39
 
40 40
 			<?php
41 41
 			/* Start the Loop */
42
-			while ( have_posts() ) : the_post();
42
+			while (have_posts()) : the_post();
43 43
 
44 44
 				/* Include the post format-specific template for the content. If you want to
45 45
 				 * this in a child theme then include a file called called content-___.php
46 46
 				 * (where ___ is the post format) and that will be used instead.
47 47
 				 */
48
-				get_template_part( 'content', get_post_format() );
48
+				get_template_part('content', get_post_format());
49 49
 
50 50
 			endwhile;
51 51
 
52
-			twentytwelve_content_nav( 'nav-below' );
52
+			twentytwelve_content_nav('nav-below');
53 53
 			?>
54 54
 
55 55
 		<?php else : ?>
56
-			<?php get_template_part( 'content', 'none' ); ?>
56
+			<?php get_template_part('content', 'none'); ?>
57 57
 		<?php endif; ?>
58 58
 
59 59
 		</div><!-- #content -->
Please login to merge, or discard this patch.
Braces   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,8 +31,10 @@  discard block
 block discarded – undo
31 31
 						printf( __( 'Monthly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentytwelve' ) ) . '</span>' );
32 32
 					elseif ( is_year() ) :
33 33
 						printf( __( 'Yearly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentytwelve' ) ) . '</span>' );
34
-					else :
34
+					else {
35
+						:
35 36
 						_e( 'Archives', 'twentytwelve' );
37
+					}
36 38
 					endif;
37 39
 				?></h1>
38 40
 			</header><!-- .archive-header -->
@@ -52,8 +54,11 @@  discard block
 block discarded – undo
52 54
 			twentytwelve_content_nav( 'nav-below' );
53 55
 			?>
54 56
 
55
-		<?php else : ?>
56
-			<?php get_template_part( 'content', 'none' ); ?>
57
+		<?php else {
58
+	: ?>
59
+			<?php get_template_part( 'content', 'none' );
60
+}
61
+?>
57 62
 		<?php endif; ?>
58 63
 
59 64
 		</div><!-- #content -->
Please login to merge, or discard this patch.
src/wp-content/themes/twentytwelve/content-status.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 		<div class="entry-header">
13 13
 			<header>
14 14
 				<h1><?php the_author(); ?></h1>
15
-				<h2><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a></h2>
15
+				<h2><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr(sprintf(__('Permalink to %s', 'twentytwelve'), the_title_attribute('echo=0'))); ?>" rel="bookmark"><?php echo get_the_date(); ?></a></h2>
16 16
 			</header>
17 17
 			<?php
18 18
 			/**
@@ -22,21 +22,21 @@  discard block
 block discarded – undo
22 22
 			 *
23 23
 			 * @param int $size The height and width of the avatar in pixels.
24 24
 			 */
25
-			$status_avatar = apply_filters( 'twentytwelve_status_avatar', 48 );
26
-			echo get_avatar( get_the_author_meta( 'ID' ), $status_avatar );
25
+			$status_avatar = apply_filters('twentytwelve_status_avatar', 48);
26
+			echo get_avatar(get_the_author_meta('ID'), $status_avatar);
27 27
 			?>
28 28
 		</div><!-- .entry-header -->
29 29
 
30 30
 		<div class="entry-content">
31
-			<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentytwelve' ) ); ?>
31
+			<?php the_content(__('Continue reading <span class="meta-nav">&rarr;</span>', 'twentytwelve')); ?>
32 32
 		</div><!-- .entry-content -->
33 33
 
34 34
 		<footer class="entry-meta">
35
-			<?php if ( comments_open() ) : ?>
35
+			<?php if (comments_open()) : ?>
36 36
 			<div class="comments-link">
37
-				<?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
37
+				<?php comments_popup_link('<span class="leave-reply">'.__('Leave a reply', 'twentytwelve').'</span>', __('1 Reply', 'twentytwelve'), __('% Replies', 'twentytwelve')); ?>
38 38
 			</div><!-- .comments-link -->
39 39
 			<?php endif; // comments_open() ?>
40
-			<?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
40
+			<?php edit_post_link(__('Edit', 'twentytwelve'), '<span class="edit-link">', '</span>'); ?>
41 41
 		</footer><!-- .entry-meta -->
42 42
 	</article><!-- #post -->
Please login to merge, or discard this patch.