Skip to content

Commit 93c52bc

Browse files
committed
Bundled Themes: Remove closing PHP tag at the end of files.
To help avoid issues with trailing whitespace, omitting the closing PHP tag at the end of a file is preferred. Props netweb, dd32, yahil, milindmore22, vishalkakadiya, NomNom99, manishsongirkar36, sabernhardt, audrasjb, desrosj. See #40039. git-svn-id: https://develop.svn.wordpress.org/trunk@53880 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 57d6313 commit 93c52bc

File tree

12 files changed

+33
-16
lines changed

12 files changed

+33
-16
lines changed

src/wp-content/themes/twentynineteen/template-parts/footer/footer-widgets.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
* @since Twenty Nineteen 1.0
88
*/
99

10-
if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
10+
if ( is_active_sidebar( 'sidebar-1' ) ) :
11+
?>
1112

1213
<aside class="widget-area" aria-label="<?php esc_attr_e( 'Footer', 'twentynineteen' ); ?>">
1314
<?php
@@ -21,4 +22,5 @@
2122
?>
2223
</aside><!-- .widget-area -->
2324

24-
<?php endif; ?>
25+
<?php
26+
endif;

src/wp-content/themes/twentynineteen/template-parts/header/entry-header.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111

1212
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
1313

14-
<?php if ( ! is_page() ) : ?>
14+
<?php
15+
if ( ! is_page() ) :
16+
?>
1517
<div class="entry-meta">
1618
<?php twentynineteen_posted_by(); ?>
1719
<?php twentynineteen_posted_on(); ?>
@@ -43,4 +45,5 @@
4345
);
4446
?>
4547
</div><!-- .entry-meta -->
46-
<?php endif; ?>
48+
<?php
49+
endif;

src/wp-content/themes/twentynineteen/template-parts/post/author-bio.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
* @since Twenty Nineteen 1.0
88
*/
99

10-
if ( (bool) get_the_author_meta( 'description' ) ) : ?>
10+
if ( (bool) get_the_author_meta( 'description' ) ) :
11+
?>
1112
<div class="author-bio">
1213
<h2 class="author-title">
1314
<span class="author-heading">
@@ -27,4 +28,5 @@
2728
</a>
2829
</p><!-- .author-description -->
2930
</div><!-- .author-bio -->
30-
<?php endif; ?>
31+
<?php
32+
endif;

src/wp-content/themes/twentyseventeen/template-parts/footer/footer-widgets.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,5 @@
3232
<?php } ?>
3333
</aside><!-- .widget-area -->
3434

35-
<?php endif; ?>
35+
<?php
36+
endif;

src/wp-content/themes/twentytwenty/singular.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@
3131

3232
<?php get_template_part( 'template-parts/footer-menus-widgets' ); ?>
3333

34-
<?php get_footer(); ?>
34+
<?php
35+
get_footer();

src/wp-content/themes/twentytwenty/template-parts/entry-author-bio.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
* @since Twenty Twenty 1.0
88
*/
99

10-
if ( (bool) get_the_author_meta( 'description' ) && (bool) get_theme_mod( 'show_author_bio', true ) ) : ?>
10+
if ( (bool) get_the_author_meta( 'description' ) && (bool) get_theme_mod( 'show_author_bio', true ) ) :
11+
?>
1112
<div class="author-bio">
1213
<div class="author-title-wrapper">
1314
<div class="author-avatar vcard">
@@ -30,4 +31,5 @@
3031
</a>
3132
</div><!-- .author-description -->
3233
</div><!-- .author-bio -->
33-
<?php endif; ?>
34+
<?php
35+
endif;

src/wp-content/themes/twentytwenty/template-parts/footer-menus-widgets.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,5 @@
116116

117117
</div><!-- .footer-nav-widgets-wrapper -->
118118

119-
<?php } ?>
119+
<?php
120+
}

src/wp-content/themes/twentytwenty/templates/template-cover.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,5 @@
3030

3131
<?php get_template_part( 'template-parts/footer-menus-widgets' ); ?>
3232

33-
<?php get_footer(); ?>
33+
<?php
34+
get_footer();

src/wp-content/themes/twentytwentyone/archive.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,5 @@
3434
<?php get_template_part( 'template-parts/content/content-none' ); ?>
3535
<?php endif; ?>
3636

37-
<?php get_footer(); ?>
37+
<?php
38+
get_footer();

src/wp-content/themes/twentytwentyone/template-parts/footer/footer-widgets.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@
1313
<?php dynamic_sidebar( 'sidebar-1' ); ?>
1414
</aside><!-- .widget-area -->
1515

16-
<?php endif; ?>
16+
<?php
17+
endif;

0 commit comments

Comments
 (0)