Completed
Branch master (d2f79a)
by
unknown
07:00 queued 14s
created
themes/twentytwentyone/template-parts/content/content-page.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -13,12 +13,12 @@  discard block
 block discarded – undo
13 13
 
14 14
 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
15 15
 
16
-	<?php if ( ! is_front_page() ) : ?>
16
+	<?php if ( ! is_front_page()) : ?>
17 17
 		<header class="entry-header alignwide">
18
-			<?php get_template_part( 'template-parts/header/entry-header' ); ?>
18
+			<?php get_template_part('template-parts/header/entry-header'); ?>
19 19
 			<?php twenty_twenty_one_post_thumbnail(); ?>
20 20
 		</header><!-- .entry-header -->
21
-	<?php elseif ( has_post_thumbnail() ) : ?>
21
+	<?php elseif (has_post_thumbnail()) : ?>
22 22
 		<header class="entry-header alignwide">
23 23
 			<?php twenty_twenty_one_post_thumbnail(); ?>
24 24
 		</header><!-- .entry-header -->
@@ -30,23 +30,23 @@  discard block
 block discarded – undo
30 30
 
31 31
 		wp_link_pages(
32 32
 			array(
33
-				'before'   => '<nav class="page-links" aria-label="' . esc_attr__( 'Page', 'twentytwentyone' ) . '">',
33
+				'before'   => '<nav class="page-links" aria-label="'.esc_attr__('Page', 'twentytwentyone').'">',
34 34
 				'after'    => '</nav>',
35 35
 				/* translators: %: Page number. */
36
-				'pagelink' => esc_html__( 'Page %', 'twentytwentyone' ),
36
+				'pagelink' => esc_html__('Page %', 'twentytwentyone'),
37 37
 			)
38 38
 		);
39 39
 		?>
40 40
 	</div><!-- .entry-content -->
41 41
 
42
-	<?php if ( get_edit_post_link() ) : ?>
42
+	<?php if (get_edit_post_link()) : ?>
43 43
 		<footer class="entry-footer default-max-width">
44 44
 			<?php
45 45
 			edit_post_link(
46 46
 				sprintf(
47 47
 					/* translators: %s: Post title. Only visible to screen readers. */
48
-					esc_html__( 'Edit %s', 'twentytwentyone' ),
49
-					'<span class="screen-reader-text">' . get_the_title() . '</span>'
48
+					esc_html__('Edit %s', 'twentytwentyone'),
49
+					'<span class="screen-reader-text">'.get_the_title().'</span>'
50 50
 				),
51 51
 				'<span class="edit-link">',
52 52
 				'</span>'
Please login to merge, or discard this patch.
themes/twentytwentyone/template-parts/content/content-none.php 2 patches
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -13,52 +13,52 @@
 block discarded – undo
13 13
 
14 14
 <section class="no-results not-found">
15 15
 	<header class="page-header alignwide">
16
-		<?php if ( is_search() ) : ?>
16
+		<?php if (is_search()) : ?>
17 17
 
18 18
 			<h1 class="page-title">
19 19
 				<?php
20 20
 				printf(
21 21
 					/* translators: %s: Search term. */
22
-					esc_html__( 'Results for "%s"', 'twentytwentyone' ),
23
-					'<span class="page-description search-term">' . esc_html( get_search_query() ) . '</span>'
22
+					esc_html__('Results for "%s"', 'twentytwentyone'),
23
+					'<span class="page-description search-term">'.esc_html(get_search_query()).'</span>'
24 24
 				);
25 25
 				?>
26 26
 			</h1>
27 27
 
28 28
 		<?php else : ?>
29 29
 
30
-			<h1 class="page-title"><?php esc_html_e( 'Nothing here', 'twentytwentyone' ); ?></h1>
30
+			<h1 class="page-title"><?php esc_html_e('Nothing here', 'twentytwentyone'); ?></h1>
31 31
 
32 32
 		<?php endif; ?>
33 33
 	</header><!-- .page-header -->
34 34
 
35 35
 	<div class="page-content default-max-width">
36 36
 
37
-		<?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
37
+		<?php if (is_home() && current_user_can('publish_posts')) : ?>
38 38
 
39 39
 			<?php
40 40
 			printf(
41
-				'<p>' . wp_kses(
41
+				'<p>'.wp_kses(
42 42
 					/* translators: %s: Link to WP admin new post page. */
43
-					__( 'Ready to publish your first post? <a href="%s">Get started here</a>.', 'twentytwentyone' ),
43
+					__('Ready to publish your first post? <a href="%s">Get started here</a>.', 'twentytwentyone'),
44 44
 					array(
45 45
 						'a' => array(
46 46
 							'href' => array(),
47 47
 						),
48 48
 					)
49
-				) . '</p>',
50
-				esc_url( admin_url( 'post-new.php' ) )
49
+				).'</p>',
50
+				esc_url(admin_url('post-new.php'))
51 51
 			);
52 52
 			?>
53 53
 
54
-		<?php elseif ( is_search() ) : ?>
54
+		<?php elseif (is_search()) : ?>
55 55
 
56
-			<p><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'twentytwentyone' ); ?></p>
56
+			<p><?php esc_html_e('Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'twentytwentyone'); ?></p>
57 57
 			<?php get_search_form(); ?>
58 58
 
59 59
 		<?php else : ?>
60 60
 
61
-			<p><?php esc_html_e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'twentytwentyone' ); ?></p>
61
+			<p><?php esc_html_e('It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'twentytwentyone'); ?></p>
62 62
 			<?php get_search_form(); ?>
63 63
 
64 64
 		<?php endif; ?>
Please login to merge, or discard this patch.
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,9 +25,12 @@  discard block
 block discarded – undo
25 25
 				?>
26 26
 			</h1>
27 27
 
28
-		<?php else : ?>
28
+		<?php else {
29
+	: ?>
29 30
 
30
-			<h1 class="page-title"><?php esc_html_e( 'Nothing here', 'twentytwentyone' ); ?></h1>
31
+			<h1 class="page-title"><?php esc_html_e( 'Nothing here', 'twentytwentyone' );
32
+}
33
+?></h1>
31 34
 
32 35
 		<?php endif; ?>
33 36
 	</header><!-- .page-header -->
@@ -56,9 +59,12 @@  discard block
 block discarded – undo
56 59
 			<p><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'twentytwentyone' ); ?></p>
57 60
 			<?php get_search_form(); ?>
58 61
 
59
-		<?php else : ?>
62
+		<?php else {
63
+	: ?>
60 64
 
61
-			<p><?php esc_html_e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'twentytwentyone' ); ?></p>
65
+			<p><?php esc_html_e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'twentytwentyone' );
66
+}
67
+?></p>
62 68
 			<?php get_search_form(); ?>
63 69
 
64 70
 		<?php endif; ?>
Please login to merge, or discard this patch.
themes/twentytwentyone/template-parts/content/content-single.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
15 15
 
16 16
 	<header class="entry-header alignwide">
17
-		<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
17
+		<?php the_title('<h1 class="entry-title">', '</h1>'); ?>
18 18
 		<?php twenty_twenty_one_post_thumbnail(); ?>
19 19
 	</header><!-- .entry-header -->
20 20
 
@@ -24,10 +24,10 @@  discard block
 block discarded – undo
24 24
 
25 25
 		wp_link_pages(
26 26
 			array(
27
-				'before'   => '<nav class="page-links" aria-label="' . esc_attr__( 'Page', 'twentytwentyone' ) . '">',
27
+				'before'   => '<nav class="page-links" aria-label="'.esc_attr__('Page', 'twentytwentyone').'">',
28 28
 				'after'    => '</nav>',
29 29
 				/* translators: %: Page number. */
30
-				'pagelink' => esc_html__( 'Page %', 'twentytwentyone' ),
30
+				'pagelink' => esc_html__('Page %', 'twentytwentyone'),
31 31
 			)
32 32
 		);
33 33
 		?>
@@ -37,8 +37,8 @@  discard block
 block discarded – undo
37 37
 		<?php twenty_twenty_one_entry_meta_footer(); ?>
38 38
 	</footer><!-- .entry-footer -->
39 39
 
40
-	<?php if ( ! is_singular( 'attachment' ) ) : ?>
41
-		<?php get_template_part( 'template-parts/post/author-bio' ); ?>
40
+	<?php if ( ! is_singular('attachment')) : ?>
41
+		<?php get_template_part('template-parts/post/author-bio'); ?>
42 42
 	<?php endif; ?>
43 43
 
44 44
 </article><!-- #post-<?php the_ID(); ?> -->
Please login to merge, or discard this patch.
themes/twentytwentyone/template-parts/content/content.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,10 +13,10 @@  discard block
 block discarded – undo
13 13
 
14 14
 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
15 15
 	<header class="entry-header">
16
-		<?php if ( is_singular() ) : ?>
17
-			<?php the_title( '<h1 class="entry-title default-max-width">', '</h1>' ); ?>
16
+		<?php if (is_singular()) : ?>
17
+			<?php the_title('<h1 class="entry-title default-max-width">', '</h1>'); ?>
18 18
 		<?php else : ?>
19
-			<?php the_title( sprintf( '<h2 class="entry-title default-max-width"><a href="%s">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
19
+			<?php the_title(sprintf('<h2 class="entry-title default-max-width"><a href="%s">', esc_url(get_permalink())), '</a></h2>'); ?>
20 20
 		<?php endif; ?>
21 21
 
22 22
 		<?php twenty_twenty_one_post_thumbnail(); ?>
@@ -30,10 +30,10 @@  discard block
 block discarded – undo
30 30
 
31 31
 		wp_link_pages(
32 32
 			array(
33
-				'before'   => '<nav class="page-links" aria-label="' . esc_attr__( 'Page', 'twentytwentyone' ) . '">',
33
+				'before'   => '<nav class="page-links" aria-label="'.esc_attr__('Page', 'twentytwentyone').'">',
34 34
 				'after'    => '</nav>',
35 35
 				/* translators: %: Page number. */
36
-				'pagelink' => esc_html__( 'Page %', 'twentytwentyone' ),
36
+				'pagelink' => esc_html__('Page %', 'twentytwentyone'),
37 37
 			)
38 38
 		);
39 39
 
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,8 +15,11 @@
 block discarded – undo
15 15
 	<header class="entry-header">
16 16
 		<?php if ( is_singular() ) : ?>
17 17
 			<?php the_title( '<h1 class="entry-title default-max-width">', '</h1>' ); ?>
18
-		<?php else : ?>
19
-			<?php the_title( sprintf( '<h2 class="entry-title default-max-width"><a href="%s">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
18
+		<?php else {
19
+	: ?>
20
+			<?php the_title( sprintf( '<h2 class="entry-title default-max-width"><a href="%s">', esc_url( get_permalink() ) ), '</a></h2>' );
21
+}
22
+?>
20 23
 		<?php endif; ?>
21 24
 
22 25
 		<?php twenty_twenty_one_post_thumbnail(); ?>
Please login to merge, or discard this patch.
themes/twentytwentyone/template-parts/content/content-excerpt.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,10 +13,10 @@
 block discarded – undo
13 13
 
14 14
 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
15 15
 
16
-	<?php get_template_part( 'template-parts/header/excerpt-header', get_post_format() ); ?>
16
+	<?php get_template_part('template-parts/header/excerpt-header', get_post_format()); ?>
17 17
 
18 18
 	<div class="entry-content">
19
-		<?php get_template_part( 'template-parts/excerpt/excerpt', get_post_format() ); ?>
19
+		<?php get_template_part('template-parts/excerpt/excerpt', get_post_format()); ?>
20 20
 	</div><!-- .entry-content -->
21 21
 
22 22
 	<footer class="entry-footer default-max-width">
Please login to merge, or discard this patch.
themes/twentytwentyone/template-parts/post/author-bio.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -8,27 +8,27 @@
 block discarded – undo
8 8
  */
9 9
 
10 10
 ?>
11
-<?php if ( (bool) get_the_author_meta( 'description' ) && post_type_supports( get_post_type(), 'author' ) ) : ?>
12
-	<div class="author-bio <?php echo get_option( 'show_avatars' ) ? 'show-avatars' : ''; ?>">
13
-		<?php echo get_avatar( get_the_author_meta( 'ID' ), '85' ); ?>
11
+<?php if ((bool) get_the_author_meta('description') && post_type_supports(get_post_type(), 'author')) : ?>
12
+	<div class="author-bio <?php echo get_option('show_avatars') ? 'show-avatars' : ''; ?>">
13
+		<?php echo get_avatar(get_the_author_meta('ID'), '85'); ?>
14 14
 		<div class="author-bio-content">
15 15
 			<h2 class="author-title">
16 16
 			<?php
17 17
 			printf(
18 18
 				/* translators: %s: Author name. */
19
-				esc_html__( 'By %s', 'twentytwentyone' ),
19
+				esc_html__('By %s', 'twentytwentyone'),
20 20
 				get_the_author()
21 21
 			);
22 22
 			?>
23 23
 			</h2>
24
-			<p class="author-description"> <?php the_author_meta( 'description' ); ?></p><!-- .author-description -->
24
+			<p class="author-description"> <?php the_author_meta('description'); ?></p><!-- .author-description -->
25 25
 			<?php
26 26
 			printf(
27 27
 				'<a class="author-link" href="%1$s" rel="author">%2$s</a>',
28
-				esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
28
+				esc_url(get_author_posts_url(get_the_author_meta('ID'))),
29 29
 				sprintf(
30 30
 					/* translators: %s: Author name. */
31
-					esc_html__( 'View all of %s\'s posts.', 'twentytwentyone' ),
31
+					esc_html__('View all of %s\'s posts.', 'twentytwentyone'),
32 32
 					get_the_author()
33 33
 				)
34 34
 			);
Please login to merge, or discard this patch.
themes/twentytwentyone/template-parts/excerpt/excerpt-quote.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,10 +12,10 @@
 block discarded – undo
12 12
 $content = get_the_content();
13 13
 
14 14
 // If there is no quote or pullquote print the content.
15
-if ( has_block( 'core/quote', $content ) ) {
16
-	twenty_twenty_one_print_first_instance_of_block( 'core/quote', $content );
17
-} elseif ( has_block( 'core/pullquote', $content ) ) {
18
-	twenty_twenty_one_print_first_instance_of_block( 'core/pullquote', $content );
15
+if (has_block('core/quote', $content)) {
16
+	twenty_twenty_one_print_first_instance_of_block('core/quote', $content);
17
+} elseif (has_block('core/pullquote', $content)) {
18
+	twenty_twenty_one_print_first_instance_of_block('core/pullquote', $content);
19 19
 } else {
20 20
 	the_excerpt();
21 21
 }
Please login to merge, or discard this patch.
themes/twentytwentyone/template-parts/excerpt/excerpt-chat.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@
 block discarded – undo
11 11
 
12 12
 // If there are paragraph blocks, print up to two.
13 13
 // Otherwise this is legacy content, so print the excerpt.
14
-if ( has_block( 'core/paragraph', get_the_content() ) ) {
14
+if (has_block('core/paragraph', get_the_content())) {
15 15
 
16
-	twenty_twenty_one_print_first_instance_of_block( 'core/paragraph', get_the_content(), 2 );
16
+	twenty_twenty_one_print_first_instance_of_block('core/paragraph', get_the_content(), 2);
17 17
 } else {
18 18
 
19 19
 	the_excerpt();
Please login to merge, or discard this patch.
themes/twentytwentyone/template-parts/excerpt/excerpt-video.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -11,12 +11,12 @@
 block discarded – undo
11 11
 
12 12
 $content = get_the_content();
13 13
 
14
-if ( has_block( 'core/video', $content ) ) {
15
-	twenty_twenty_one_print_first_instance_of_block( 'core/video', $content );
16
-} elseif ( has_block( 'core/embed', $content ) ) {
17
-	twenty_twenty_one_print_first_instance_of_block( 'core/embed', $content );
14
+if (has_block('core/video', $content)) {
15
+	twenty_twenty_one_print_first_instance_of_block('core/video', $content);
16
+} elseif (has_block('core/embed', $content)) {
17
+	twenty_twenty_one_print_first_instance_of_block('core/embed', $content);
18 18
 } else {
19
-	twenty_twenty_one_print_first_instance_of_block( 'core-embed/*', $content );
19
+	twenty_twenty_one_print_first_instance_of_block('core-embed/*', $content);
20 20
 }
21 21
 
22 22
 // Add the excerpt.
Please login to merge, or discard this patch.