From 3cf6389db6e3ccbe423b5ce48a2c8ceb609f57cc Mon Sep 17 00:00:00 2001 From: Frank419 Date: Thu, 29 Aug 2024 15:48:42 +0800 Subject: [PATCH] Mass escaping and singular placeholder fix according to the CS check. --- author.php | 4 +- comments.php | 6 +-- footer.php | 28 ++++++------ header.php | 54 ++++++++++++------------ includes/class-color-palette-control.php | 2 +- includes/class-multi-image-control.php | 2 +- includes/colors.php | 6 +-- page.php | 2 - singular.php | 2 +- templates/loop.php | 21 ++++----- templates/metadata.php | 4 +- 11 files changed, 65 insertions(+), 66 deletions(-) diff --git a/author.php b/author.php index 814cbe8..cd270d4 100644 --- a/author.php +++ b/author.php @@ -39,7 +39,7 @@ if ( !defined( 'WPINC' ) ) {
-

+

@@ -51,7 +51,7 @@ if ( !defined( 'WPINC' ) ) { printf( /* translators: %s: The author display name. */ esc_html__( 'All posts by %s', 'minimalistflex' ), - get_the_author_meta( 'display_name' ) + esc_html( get_the_author_meta( 'display_name' ) ) ) ?> diff --git a/comments.php b/comments.php index a7219c4..32e1e4f 100644 --- a/comments.php +++ b/comments.php @@ -17,14 +17,14 @@ if ( post_password_required() ) { printf( /* translators: %1$s: Number of comments. %2$s: Post title. */ esc_html( _nx( - 'One comment on "%2$s"', + '%1$s comment on "%2$s"', '%1$s comments on "%2$s"', get_comments_number(), 'comments title', 'minimalistflex' ) ), - number_format_i18n( get_comments_number() ), - '' . get_the_title() . '' + esc_html( number_format_i18n( get_comments_number() ) ), + '' . esc_html( get_the_title() ) . '' ); ?> diff --git a/footer.php b/footer.php index 453c172..9139626 100644 --- a/footer.php +++ b/footer.php @@ -9,24 +9,24 @@ if ( !defined( 'WPINC' ) ) { - 'no' ): ?> + 'no' ): ?> @@ -42,13 +42,13 @@ if( is_home() ) {