Fix incorrectly rendered comment edit/delete buttons

This commit is contained in:
Tetrakern 2024-11-15 19:36:50 +01:00
parent 8ba931af82
commit c360a9e996

View File

@ -351,7 +351,7 @@ function fictioneer_get_comment_delete_button( $hidden = true ) {
return sprintf( return sprintf(
$html_start, $html_start,
$hidden ? '' : 'hidden' $hidden ? 'hidden' : ''
); );
} }
@ -369,14 +369,14 @@ function fictioneer_get_comment_edit_button( $hidden = true ) {
static $html_start = null; static $html_start = null;
if ( is_null( $html_start ) ) { if ( is_null( $html_start ) ) {
$html_start = '<button class="fictioneer-comment__edit-toggle comment-quick-button hide-on-edit tooltipped hide-if-logged-out hide-on-ajax"" type="button" data-dialog-message="' . $html_start = '<button class="fictioneer-comment__edit-toggle comment-quick-button hide-on-edit tooltipped hide-if-logged-out hide-on-ajax" type="button" data-dialog-message="' .
'" data-tooltip="' . esc_attr_x( 'Edit', 'Edit comment inline.'. 'fictioneer' ) . '" data-tooltip="' . esc_attr_x( 'Edit', 'Edit comment inline.'. 'fictioneer' ) .
'" data-click="trigger-inline-comment-edit" %s><i class="fa-solid fa-pen"></i></button>'; '" data-click="trigger-inline-comment-edit" %s><i class="fa-solid fa-pen"></i></button>';
} }
return sprintf( return sprintf(
$html_start, $html_start,
$hidden ? '' : 'hidden' $hidden ? 'hidden' : ''
); );
} }