' . esc_html__( 'Pages:', '_s' ),
- 'after' => '
',
- ) );
+ wp_link_pages(
+ array(
+ 'before' => '' . esc_html__( 'Pages:', '_s' ),
+ 'after' => '
',
+ )
+ );
?>
diff --git a/404.php b/404.php index 62c3e068..ba5d537a 100644 --- a/404.php +++ b/404.php @@ -31,13 +31,15 @@ get_header();
_s
(with a space before it) to capture DocBlocks.
5. Search for `_s-` to capture prefixed handles.
+6. Search for `_S_` (in uppercase) to capture constants.
OR
@@ -39,6 +40,7 @@ OR
3. Search for: `Text Domain: _s` and replace with: `Text Domain: megatherium-is-awesome` in `style.css`.
4. Search for: _s
and replace with: Megatherium_is_Awesome
.
5. Search for: `_s-` and replace with: `megatherium-is-awesome-`.
+6. Search for: `_S_` and replace with: `MEGATHERIUM_IS_AWESOME_`.
Then, update the stylesheet header in `style.css`, the links in `footer.php` with your own information and rename `_s.pot` from `languages` folder to use the theme's slug. Next, update or delete this readme.
diff --git a/comments.php b/comments.php
index adf9b157..364973f5 100644
--- a/comments.php
+++ b/comments.php
@@ -36,10 +36,10 @@ if ( post_password_required() ) {
'' . wp_kses_post( get_the_title() ) . ''
);
} else {
- printf( // WPCS: XSS OK.
+ printf(
/* translators: 1: comment count number, 2: title. */
esc_html( _nx( '%1$s thought on “%2$s”', '%1$s thoughts on “%2$s”', $_s_comment_count, 'comments title', '_s' ) ),
- number_format_i18n( $_s_comment_count ),
+ number_format_i18n( $_s_comment_count ), // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
'' . wp_kses_post( get_the_title() ) . ''
);
}
@@ -50,10 +50,12 @@ if ( post_password_required() ) {