Fix incorrectly rendered comment edit/delete buttons
This commit is contained in:
parent
8ba931af82
commit
c360a9e996
@ -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' : ''
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user