From c360a9e99628f1aa64114a310dc730a97af76d64 Mon Sep 17 00:00:00 2001 From: Tetrakern <26898880+Tetrakern@users.noreply.github.com> Date: Fri, 15 Nov 2024 19:36:50 +0100 Subject: [PATCH] Fix incorrectly rendered comment edit/delete buttons --- includes/functions/comments/_comments_threads.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/functions/comments/_comments_threads.php b/includes/functions/comments/_comments_threads.php index a6782d4b..0d558c44 100644 --- a/includes/functions/comments/_comments_threads.php +++ b/includes/functions/comments/_comments_threads.php @@ -351,7 +351,7 @@ function fictioneer_get_comment_delete_button( $hidden = true ) { return sprintf( $html_start, - $hidden ? '' : 'hidden' + $hidden ? 'hidden' : '' ); } @@ -369,14 +369,14 @@ function fictioneer_get_comment_edit_button( $hidden = true ) { static $html_start = null; if ( is_null( $html_start ) ) { - $html_start = ''; } return sprintf( $html_start, - $hidden ? '' : 'hidden' + $hidden ? 'hidden' : '' ); }