Revert changes to use wp_kses_data instead. wp_filter_post_kses tends to mess up things.

This commit is contained in:
Frank419 2024-08-27 21:41:38 +08:00
parent 7ad5d47bae
commit 1062709ea6
2 changed files with 7 additions and 8 deletions

View File

@ -34,13 +34,12 @@ if( is_home() ) {
</main>
<ul class="minimalistflex-controls">
<?php if ( get_theme_mod( 'minimalistflex_interface_scroll_top', 'yes' ) === 'yes' ): ?>
<li><a href="#main-content" aria-label="<?php esc_attr_e( 'Back to top', 'minimalistflex' ) ?>">:D</a></li>
<?php endif; ?>
</ul>
<footer class="minimalistflex-footer">
<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>
<?php endif; ?>
</ul>
<div class="minimalistflex-footer-widgets-container">
<?php $sidebars = get_theme_mod( 'minimalistflex_footer_widget_layout', 'one' ); ?>
<?php
@ -69,7 +68,7 @@ if( is_home() ) {
<div class="footer-credits">
<?php $footer_type = get_theme_mod( 'minimalistflex_footer_type', 'both' ); ?>
<?php if ( $footer_type === 'both' || $footer_type === 'custom' ): ?>
<?php echo wp_filter_post_kses( get_theme_mod( 'minimalistflex_footer_text' ) ) ?>
<?php echo wp_kses_data( get_theme_mod( 'minimalistflex_footer_text' ) ) ?>
<?php endif; ?>
<?php if ( $footer_type === 'both' || $footer_type === 'minimalistflex' ): ?>
<?php

View File

@ -470,7 +470,7 @@ function minimalistflex_customize_register( $wp_customize ) {
'type' => 'theme_mod',
'capability' => 'edit_theme_options',
'transport' => 'refresh',
'sanitize_callback' => 'wp_filter_post_kses'
'sanitize_callback' => 'wp_kses_data'
) );
$wp_customize -> add_setting( 'minimalistflex_footer_widget_layout', Array(
'type' => 'theme_mod',