From 3ac6f6a8f8d46fe961dbf8152069d193d42808c2 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 14 Sep 2019 20:59:29 +0000 Subject: [PATCH] Bundled Themes: Update the message shown when a comment is awaiting moderation. If the commenter doesn't have cookies set, they won't see the comment preview again. Showing an expanded message will help offset any confusion if they revisit the site later, and their comment is still in moderation, but they can't see it anymore. Props birgire, superpoincare. Fixes #47461. See #43857. git-svn-id: https://develop.svn.wordpress.org/trunk@46117 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-content/themes/twentyeleven/functions.php | 15 ++++++++++++--- .../class-twentynineteen-walker-comment.php | 12 +++++++++++- src/wp-content/themes/twentyten/functions.php | 16 +++++++++++++--- src/wp-content/themes/twentytwelve/functions.php | 13 +++++++++++-- 4 files changed, 47 insertions(+), 9 deletions(-) diff --git a/src/wp-content/themes/twentyeleven/functions.php b/src/wp-content/themes/twentyeleven/functions.php index 2fbbe4d04a..540c806c78 100644 --- a/src/wp-content/themes/twentyeleven/functions.php +++ b/src/wp-content/themes/twentyeleven/functions.php @@ -743,10 +743,19 @@ if ( ! function_exists( 'twentyeleven_comment' ) ) : ', '' ); ?> - comment_approved == '0' ) : ?> - + + + comment_approved ) : ?> +
- + diff --git a/src/wp-content/themes/twentynineteen/classes/class-twentynineteen-walker-comment.php b/src/wp-content/themes/twentynineteen/classes/class-twentynineteen-walker-comment.php index 18565e9388..cded91d0bf 100644 --- a/src/wp-content/themes/twentynineteen/classes/class-twentynineteen-walker-comment.php +++ b/src/wp-content/themes/twentynineteen/classes/class-twentynineteen-walker-comment.php @@ -88,9 +88,19 @@ class TwentyNineteen_Walker_Comment extends Walker_Comment { ?> + + comment_approved ) : ?> -

+

+
diff --git a/src/wp-content/themes/twentyten/functions.php b/src/wp-content/themes/twentyten/functions.php index 1a378c0dd1..97f018d4ab 100644 --- a/src/wp-content/themes/twentyten/functions.php +++ b/src/wp-content/themes/twentyten/functions.php @@ -428,9 +428,19 @@ if ( ! function_exists( 'twentyten_comment' ) ) : printf( __( '%s says:', 'twentyten' ), sprintf( '%s', get_comment_author_link() ) ); ?>
- comment_approved == '0' ) : ?> - -
+ + + + comment_approved ) : ?> + +
diff --git a/src/wp-content/themes/twentytwelve/functions.php b/src/wp-content/themes/twentytwelve/functions.php index 65dbc9fdb2..04da105b06 100644 --- a/src/wp-content/themes/twentytwelve/functions.php +++ b/src/wp-content/themes/twentytwelve/functions.php @@ -446,9 +446,18 @@ if ( ! function_exists( 'twentytwelve_comment' ) ) : ?> + + comment_approved ) : ?> -

- +

+