Remove [u] BBCode
Could be confused for links and really, who needs that?
This commit is contained in:
parent
7eadc2a67d
commit
3d0330ed6f
@ -1160,7 +1160,6 @@ function fcntr( $key, $escape = false ) {
|
||||
'comment_anchor' => _x( '<i class="fa-solid fa-link"></i>', 'Text or icon for paragraph anchor in comments.', 'fictioneer' ),
|
||||
'bbcode_b' => _x( '<code>[b]</code><strong>Bold</strong><code>[/b]</code> of you to assume I have a plan.', 'fictioneer' ),
|
||||
'bbcode_i' => _x( 'Deathbringer, emphasis on <code>[i]</code><em>death</em><code>[/i]</code>.', 'fictioneer' ),
|
||||
'bbcode_u' => _x( 'You need crayons for <code>[u]</code><u>underlining</u><code>[/u]</code>?', 'fictioneer' ),
|
||||
'bbcode_s' => _x( 'I’m totally <code>[s]</code><strike>crossed out</strike><code>[/s]</code> by this.', 'fictioneer' ),
|
||||
'bbcode_li' => _x( '<ul><li class="comment-list-item">Listless I’m counting my <code>[li]</code>bullets<code>[/li]</code>.</li></ul>', 'fictioneer' ),
|
||||
'bbcode_img' => _x( '<code>[img]</code>https://www.agine.this<code>[/img]</code> %s', 'BBCode example.', 'fictioneer' ),
|
||||
@ -1375,7 +1374,6 @@ if ( ! function_exists( 'fictioneer_bbcodes' ) ) {
|
||||
'/\[b](.+?)\[\/b]/i',
|
||||
'/\[i](.+?)\[\/i]/i',
|
||||
'/\[s](.+?)\[\/s]/i',
|
||||
'/\[u](.+?)\[\/u]/i',
|
||||
'/\[quote](.+?)\[\/quote]/i',
|
||||
'/\[ins](.+?)\[\/ins]/i',
|
||||
'/\[del](.+?)\[\/del]/i',
|
||||
@ -1394,7 +1392,6 @@ if ( ! function_exists( 'fictioneer_bbcodes' ) ) {
|
||||
'<strong>$1</strong>',
|
||||
'<em>$1</em>',
|
||||
'<strike>$1</strike>',
|
||||
'<u>$1</u>',
|
||||
'<blockquote>$1</blockquote>',
|
||||
'<ins>$1</ins>',
|
||||
'<del>$1</del>',
|
||||
|
@ -26,7 +26,6 @@ if ( ! function_exists( 'fictioneer_get_comment_toolbar' ) ) {
|
||||
<span class="fictioneer-comment-toolbar-bold" onclick="fcn_commentMakeBold()"><i class="fa-solid fa-bold"></i></span>
|
||||
<span class="fictioneer-comment-toolbar-italic" onclick="fcn_commentMakeItalic()"><i class="fa-solid fa-italic"></i></span>
|
||||
<span class="fictioneer-comment-toolbar-strike" onclick="fcn_commentMakeStrike()"><i class="fa-solid fa-strikethrough"></i></span>
|
||||
<span class="fictioneer-comment-toolbar-underline" onclick="fcn_commentMakeUnderline()"><i class="fa-solid fa-underline" style="transform: translateY(1px);"></i></span>
|
||||
<span class="fictioneer-comment-toolbar-image" onclick="fcn_commentMakeImage()"><i class="fa-solid fa-image"></i></span>
|
||||
<span class="fictioneer-comment-toolbar-link" onclick="fcn_commentMakeLink()"><i class="fa-solid fa-link"></i></span>
|
||||
<span class="fictioneer-comment-toolbar-quote" onclick="fcn_commentMakeQuote()"><i class="fa-solid fa-quote-left"></i></span>
|
||||
|
2
js/comments.min.js
vendored
2
js/comments.min.js
vendored
File diff suppressed because one or more lines are too long
@ -27,7 +27,6 @@
|
||||
<div class="modal__row modal__description _bbcodes">
|
||||
<div><?php echo fcntr( 'bbcode_b' ); ?></div>
|
||||
<div><?php echo fcntr( 'bbcode_i' ); ?></div>
|
||||
<div><?php echo fcntr( 'bbcode_u' ); ?></div>
|
||||
<div><?php echo fcntr( 'bbcode_s' ); ?></div>
|
||||
<div><?php echo fcntr( 'bbcode_li' ); ?></div>
|
||||
<div><?php printf( fcntr( 'bbcode_img' ), $preview_image ); ?></div>
|
||||
|
@ -364,16 +364,6 @@ function fcn_commentMakeStrike() {
|
||||
fcn_wrapInTag(_$$$('comment'), 's', {'shortcode': true});
|
||||
}
|
||||
|
||||
/**
|
||||
* Wrap text selection into [u] shortcode.
|
||||
*
|
||||
* @since 4.7
|
||||
*/
|
||||
|
||||
function fcn_commentMakeUnderline() {
|
||||
fcn_wrapInTag(_$$$('comment'), 'u', {'shortcode': true});
|
||||
}
|
||||
|
||||
/**
|
||||
* Wrap text selection into [link] shortcode.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user