Replace strtoupper with mb_strtoupper

This commit is contained in:
Tetrakern 2024-09-01 16:44:44 +02:00
parent 992c796cfc
commit 38087b9a86
5 changed files with 8 additions and 10 deletions

View File

@ -756,7 +756,7 @@ if ( ! function_exists( 'fictioneer_theme_comment' ) ) {
data-dialog-message="<?php echo esc_attr(
sprintf(
__( 'Are you sure you want to delete your comment? Enter %s to confirm.', 'fictioneer' ),
strtoupper( _x( 'delete', 'Prompt confirm deletion string.', 'fictioneer' ) )
mb_strtoupper( _x( 'delete', 'Prompt confirm deletion string.', 'fictioneer' ) )
)
); ?>"
data-dialog-confirm="<?php echo esc_attr_x( 'delete', 'Prompt confirm deletion string.', 'fictioneer' ); ?>"

View File

@ -8,8 +8,6 @@
*/
// Setup
?>
<div class="fictioneer-settings">

View File

@ -1124,7 +1124,7 @@ function fictioneer_admin_profile_fields_oauth( $profile_user ) {
$id_hash = get_the_author_meta( "fictioneer_{$provider[0]}_id_hash", $profile_user->ID ) ?: null;
$confirmation_message = sprintf(
__( 'Are you sure? Note that if you disconnect all accounts, you may no longer be able to log back in once you log out. Enter %s to confirm.', 'fictioneer' ),
strtoupper( $confirmation_string )
mb_strtoupper( $confirmation_string )
);
if ( $client_id && $client_secret ) {
@ -1305,7 +1305,7 @@ function fictioneer_admin_profile_fields_data_nodes( $profile_user ) {
$confirmation_message = sprintf(
__( 'Are you sure you want to clear your %s? This action is irreversible. Enter %s to confirm.', 'fictioneer' ),
str_replace( '-', ' ', $node[0] ),
strtoupper( $confirmation_string )
mb_strtoupper( $confirmation_string )
);
?>
<div class="data-node">
@ -2073,7 +2073,7 @@ function fictioneer_admin_danger_zone( $profile_user ) {
$confirmation_string = _x( 'delete', 'Prompt confirm deletion string.', 'fictioneer' );
$confirmation_message = sprintf(
__( 'Are you sure? Your account will be irrevocably deleted, although this will not remove your comments. Enter %s to confirm.', 'fictioneer' ),
strtoupper( $confirmation_string )
mb_strtoupper( $confirmation_string )
);
$deletion_url = add_query_arg(

View File

@ -102,7 +102,7 @@ reset( $sorted_stories );
<section class="index-letters">
<?php foreach ( $sorted_stories as $index => $stories ) : ?>
<a href="<?php echo esc_attr( "#letter-{$index}" ); ?>" class="index-letters__letter"><?php echo strtoupper( $index ); ?></a>
<a href="<?php echo esc_attr( "#letter-{$index}" ); ?>" class="index-letters__letter"><?php echo mb_strtoupper( $index ); ?></a>
<?php if ( $last_key !== $index ) : ?>
<span class="index-letters__separator">&bull;</span>
<?php endif; ?>
@ -112,7 +112,7 @@ reset( $sorted_stories );
<?php foreach ( $sorted_stories as $index => $stories ) : ?>
<section class="glossary">
<h2 id="<?php echo esc_attr( "letter-{$index}" ); ?>"><?php echo strtoupper( $index ); ?></h2>
<h2 id="<?php echo esc_attr( "letter-{$index}" ); ?>"><?php echo mb_strtoupper( $index ); ?></h2>
<div class="glossary__columns">

View File

@ -98,7 +98,7 @@ reset( $sorted_stories );
<section class="index-letters">
<?php foreach ( $sorted_stories as $index => $stories ) : ?>
<a href="<?php echo esc_attr( "#letter-{$index}" ); ?>" class="index-letters__letter"><?php echo strtoupper( $index ); ?></a>
<a href="<?php echo esc_attr( "#letter-{$index}" ); ?>" class="index-letters__letter"><?php echo mb_strtoupper( $index ); ?></a>
<?php if ( $last_key !== $index ) : ?>
<span class="index-letters__separator">&bull;</span>
<?php endif; ?>
@ -108,7 +108,7 @@ reset( $sorted_stories );
<?php foreach ( $sorted_stories as $index => $stories ) : ?>
<section class="glossary">
<h2 id="<?php echo esc_attr( "letter-{$index}" ); ?>"><?php echo strtoupper( $index ); ?></h2>
<h2 id="<?php echo esc_attr( "letter-{$index}" ); ?>"><?php echo mb_strtoupper( $index ); ?></h2>
<div class="glossary__columns">