From c8349d33e9baa41ca234c5772d53ed24a229688c Mon Sep 17 00:00:00 2001 From: spirit Date: Wed, 27 Nov 2019 23:56:26 +0800 Subject: [PATCH] fix comment @ --- inc/theme_plus.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/inc/theme_plus.php b/inc/theme_plus.php index 115b200..820c7d9 100644 --- a/inc/theme_plus.php +++ b/inc/theme_plus.php @@ -118,7 +118,9 @@ if(akina_option('classify_display')){ */ function comment_add_at( $comment_text, $comment = '') { if( $comment->comment_parent > 0) { - $comment_text = '@'.get_comment_author( $comment->comment_parent ) . ' ' . $comment_text; + if(substr($comment_text, 0, 3) === "

") + $comment_text = str_replace(substr($comment_text, 0, 3), '

@'.get_comment_author( $comment->comment_parent ) . ' ', $comment_text); + else $comment_text = '@'.get_comment_author( $comment->comment_parent ) . ' ' . $comment_text; } return $comment_text; }