Added proper escaping. Imrpoved security.

This commit is contained in:
Frank419
2024-08-29 15:18:30 +08:00
parent 7a913f5e83
commit 7f3d6330eb
10 changed files with 24 additions and 23 deletions
+2 -2
View File
@@ -36,7 +36,7 @@ if( is_home() ) {
<ul class="minimalistflex-controls">
<?php if ( get_theme_mod( 'minimalistflex_interface_scroll_top', 'yes' ) === 'yes' ): ?>
<li><a href="#" aria-label="<?php esc_attr_e( 'Back to top', 'minimalistflex' ) ?>">:D</a></li>
<li><a href="#" aria-label="<?php esc_attr_e( 'Back to top', 'minimalistflex' ) ?>"><i class="dashicons dashicons-arrow-up-alt"></i></a></li>
<?php endif; ?>
</ul>
@@ -75,7 +75,7 @@ if( is_home() ) {
<?php
printf(
/* translators: %s: Link to theme author website. */
__( 'Theme <a href="%s">MinimalistFlex</a>.', 'minimalistflex' ),
esc_html__( 'Theme <a href="%s">MinimalistFlex</a>.', 'minimalistflex' ),
esc_url( 'https://onmyodev.com/' )
)
?>