Skip to content

Commit e2e0adf

Browse files
committed
s/esc_html_e/esc_html__
1 parent ec28e8b commit e2e0adf

16 files changed

+68
-68
lines changed

archive.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,38 +30,38 @@
3030
printf( '%s', single_cat_title( '', false ) );
3131
} elseif ( is_tag() ) {
3232
printf(
33-
esc_html_e( 'Posts Tagged %s', 'multiloquent' ),
33+
esc_html__( 'Posts Tagged %s', 'multiloquent' ),
3434
single_cat_title( '', false )
3535
);
3636
} elseif ( is_day() ) {
3737
printf(
38-
esc_html_e( 'Archive for %s', 'multiloquent' ),
38+
esc_html__( 'Archive for %s', 'multiloquent' ),
3939
get_the_time( 'F jS, Y' )
4040
);
4141
} elseif ( is_month() ) {
4242
printf(
43-
esc_html_e( 'Archive for %s', 'multiloquent' ), get_the_time( 'F Y' )
43+
esc_html__( 'Archive for %s', 'multiloquent' ), get_the_time( 'F Y' )
4444
);
4545
} elseif ( is_year() ) {
4646
printf(
47-
esc_html_e( 'Archive for %s', 'multiloquent' ),
47+
esc_html__( 'Archive for %s', 'multiloquent' ),
4848
get_the_time( 'Y' )
4949
);
5050
} elseif ( is_search() ) {
5151
printf(
52-
esc_html_e( 'Search Results', 'multiloquent' )
52+
esc_html__( 'Search Results', 'multiloquent' )
5353
);
5454
} elseif ( is_author() ) {
5555
printf(
56-
esc_html_e( 'All entries by this author', 'multiloquent' )
56+
esc_html__( 'All entries by this author', 'multiloquent' )
5757
);
5858
} elseif ( isset( $_GET['paged'] ) && ! empty( $_GET['paged'] ) ) {
5959
printf(
60-
esc_html_e( 'Blog Archives', 'multiloquent' )
60+
esc_html__( 'Blog Archives', 'multiloquent' )
6161
);
6262
} elseif ( is_home() ) {
6363
printf(
64-
esc_html_e( 'Recent Posts', 'multiloquent' )
64+
esc_html__( 'Recent Posts', 'multiloquent' )
6565
);
6666
}
6767
?>
@@ -86,8 +86,8 @@
8686
<div class="container-fluid post clearfix">
8787
<nav class="navitems text-center">
8888
<ul class="pagination">
89-
<li><?php previous_posts_link( esc_html_e( 'Previous Entries', 'multiloquent' ) ); ?></li>
90-
<li><?php next_posts_link( esc_html_e( 'Next Entries', 'multiloquent' ) ); ?></li>
89+
<li><?php previous_posts_link( esc_html__( 'Previous Entries', 'multiloquent' ) ); ?></li>
90+
<li><?php next_posts_link( esc_html__( 'Next Entries', 'multiloquent' ) ); ?></li>
9191
</ul>
9292
</nav>
9393
</div>

author.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<strong>
2626
<?php
2727
printf(
28-
esc_html_e( 'Website: ', 'multiloquent' )
28+
esc_html__( 'Website: ', 'multiloquent' )
2929
);
3030
?>
3131
</strong>
@@ -39,7 +39,7 @@
3939
<p>
4040
<?php
4141
printf(
42-
esc_html_e( 'Post count: %s', 'multiloquent' ),
42+
esc_html__( 'Post count: %s', 'multiloquent' ),
4343
$wp_query->found_posts
4444
);
4545
?>
@@ -78,8 +78,8 @@
7878
<div class="container-fluid post clearfix">
7979
<nav class="navitems text-center">
8080
<ul class="pagination">
81-
<li><?php previous_posts_link( esc_html_e( 'Previous Entries', 'multiloquent' ) ); ?></li>
82-
<li><?php next_posts_link( esc_html_e( 'Next Entries', 'multiloquent' ) ); ?></li>
81+
<li><?php previous_posts_link( esc_html__( 'Previous Entries', 'multiloquent' ) ); ?></li>
82+
<li><?php next_posts_link( esc_html__( 'Next Entries', 'multiloquent' ) ); ?></li>
8383
</ul>
8484
</nav>
8585
</div>

category.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
<p>
2424
<?php
2525
printf(
26-
esc_html_e( 'There are %1$s posts in the %2$s category', 'multiloquent' ),
27-
$wp_query->found_posts,
28-
single_cat_title( '', false )
29-
);
26+
esc_html__('There are %1$s posts in the %2$s category', 'multiloquent'),
27+
$wp_query->found_posts,
28+
single_cat_title('', false)
29+
);
3030
?>
3131
</p>
3232
<div><?php echo category_description(); ?></div>
@@ -50,8 +50,8 @@
5050
<div class="container-fluid post clearfix">
5151
<nav class="navitems text-center">
5252
<ul class="pagination">
53-
<li><?php previous_posts_link( esc_html_e( 'Previous Entries', 'multiloquent' ) ); ?></li>
54-
<li><?php next_posts_link( esc_html_e( 'Next Entries', 'multiloquent' ) ); ?></li>
53+
<li><?php previous_posts_link( esc_html__( 'Previous Entries', 'multiloquent' ) ); ?></li>
54+
<li><?php next_posts_link( esc_html__( 'Next Entries', 'multiloquent' ) ); ?></li>
5555
</ul>
5656
</nav>
5757
</div>

comments.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<h3>
2222
<?php
2323
printf(
24-
esc_html_e( '%1$s comments', 'multiloquent' ),
24+
esc_html__( '%1$s comments', 'multiloquent' ),
2525
number_format_i18n( get_comments_number() )
2626
);
2727
?>
@@ -34,12 +34,12 @@
3434
<nav>
3535
<ul class="pager">
3636
<?php if ( get_previous_comments_link() ) { ?>
37-
<li class="previous"><?php previous_comments_link( esc_html_e( '&larr; Older comments', 'multiloquent' ) ); ?></li>
37+
<li class="previous"><?php previous_comments_link( esc_html__( '&larr; Older comments', 'multiloquent' ) ); ?></li>
3838
<?php
3939
}
4040
if ( get_next_comments_link() ) {
4141
?>
42-
<li class="next"><?php next_comments_link( esc_html_e( 'Newer comments &rarr;', 'multiloquent' ) ); ?></li>
42+
<li class="next"><?php next_comments_link( esc_html__( 'Newer comments &rarr;', 'multiloquent' ) ); ?></li>
4343
<?php
4444
}
4545
?>
@@ -55,7 +55,7 @@
5555
<p>
5656
<?php
5757
printf(
58-
esc_html_e( 'Comments are closed.', 'multiloquent' )
58+
esc_html__( 'Comments are closed.', 'multiloquent' )
5959
);
6060
?>
6161
</p>
@@ -76,7 +76,7 @@
7676
<p>
7777
<?php
7878
printf(
79-
esc_html_e( 'Comments are closed.', 'multiloquent' )
79+
esc_html__( 'Comments are closed.', 'multiloquent' )
8080
);
8181
?>
8282
</p>
@@ -93,7 +93,7 @@
9393
<p>
9494
<?php
9595
printf(
96-
esc_html_e( 'You must be <a href="%s">logged in</a> to post a comment.', 'multiloquent' ),
96+
esc_html__( 'You must be <a href="%s">logged in</a> to post a comment.', 'multiloquent' ),
9797
wp_login_url( get_permalink() )
9898
);
9999
?>

error-snippet.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@
2121
<h1>
2222
<?php
2323
printf(
24-
esc_html_e( 'I dont have anything that matches (or nearly matches) that', 'multiloquent' )
24+
esc_html__( 'I dont have anything that matches (or nearly matches) that', 'multiloquent' )
2525
);
2626
?>
2727
</h1>
2828

2929
<p>
3030
<?php
3131
printf(
32-
esc_html_e( 'you might want to use the search or go to the <a title="%1$s" href="%2$s">homepage</a>', 'multiloquent' ),
32+
esc_html__( 'you might want to use the search or go to the <a title="%1$s" href="%2$s">homepage</a>', 'multiloquent' ),
3333
get_bloginfo( 'name' ),
3434
home_url()
3535
);

footer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
<div class="col-sm-6 col-md-6 col-lg-6 no-bullets">
5454
<p class="nav-header">
5555
<?php
56-
printf( esc_html_e( 'Useful Stuff', 'multiloquent' ) );
56+
printf( esc_html__( 'Useful Stuff', 'multiloquent' ) );
5757
?>
5858
</p>
5959
<?php
@@ -70,7 +70,7 @@
7070
<div class="col-sm-6 col-md-6 col-lg-6 no-bullets">
7171
<p class="nav-header">
7272
<?php
73-
printf( esc_html_e( 'More Useful Stuff', 'multiloquent' ) );
73+
printf( esc_html__( 'More Useful Stuff', 'multiloquent' ) );
7474
?>
7575
</p>
7676
<?php

front-page.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<p class="lead text-center">
3232
<?php
3333
printf(
34-
esc_html_e( 'Featured Posts', 'multiloquent' )
34+
esc_html__( 'Featured Posts', 'multiloquent' )
3535
);
3636
?>
3737
</p>

home.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<h1 class="article_title">
2020
<?php
2121
printf(
22-
esc_html_e( 'Featured Posts', 'multiloquent' )
22+
esc_html__( 'Featured Posts', 'multiloquent' )
2323
);
2424
?>
2525
</h1>

index.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,38 +21,38 @@
2121
printf( '%s', single_cat_title( '', false ) );
2222
} elseif ( is_tag() ) {
2323
printf(
24-
esc_html_e( 'Posts Tagged %s', 'multiloquent' ),
24+
esc_html__( 'Posts Tagged %s', 'multiloquent' ),
2525
single_tag_title()
2626
);
2727
} elseif ( is_day() ) {
2828
printf(
29-
esc_html_e( 'Archive for %s', 'multiloquent' ),
29+
esc_html__( 'Archive for %s', 'multiloquent' ),
3030
get_the_time( 'F jS, Y' )
3131
);
3232
} elseif ( is_month() ) {
3333
printf(
34-
esc_html_e( 'Archive for %s', 'multiloquent' ), get_the_time( 'F Y' )
34+
esc_html__( 'Archive for %s', 'multiloquent' ), get_the_time( 'F Y' )
3535
);
3636
} elseif ( is_year() ) {
3737
printf(
38-
esc_html_e( 'Archive for %s', 'multiloquent' ),
38+
esc_html__( 'Archive for %s', 'multiloquent' ),
3939
get_the_time( 'Y' )
4040
);
4141
} elseif ( is_search() ) {
4242
printf(
43-
esc_html_e( 'Search Results', 'multiloquent' )
43+
esc_html__( 'Search Results', 'multiloquent' )
4444
);
4545
} elseif ( is_author() ) {
4646
printf(
47-
esc_html_e( 'All entries by this author', 'multiloquent' )
47+
esc_html__( 'All entries by this author', 'multiloquent' )
4848
);
4949
} elseif ( isset( $_GET['paged'] ) && ! empty( $_GET['paged'] ) ) {
5050
printf(
51-
esc_html_e( 'Blog Archives', 'multiloquent' )
51+
esc_html__( 'Blog Archives', 'multiloquent' )
5252
);
5353
} elseif ( is_home() ) {
5454
printf(
55-
esc_html_e( 'Recent Posts', 'multiloquent' )
55+
esc_html__( 'Recent Posts', 'multiloquent' )
5656
);
5757
}
5858
?>

metadata.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
if ( ! empty( $user_url ) ) {
1818
echo '<a href="' . $user_url . '" rel="author">';
1919
printf(
20-
esc_html_e( 'by %s', 'multiloquent' ),
20+
esc_html__( 'by %s', 'multiloquent' ),
2121
get_the_author()
2222
);
2323
echo '</a>';
2424
} else {
2525
printf(
26-
esc_html_e( 'by %s', 'multiloquent' ),
26+
esc_html__( 'by %s', 'multiloquent' ),
2727
the_author_posts_link()
2828
);
2929
}

0 commit comments

Comments
 (0)