Revert changes to use wp_kses_data instead. wp_filter_post_kses tends to mess up things.
This commit is contained in:
parent
7ad5d47bae
commit
1062709ea6
13
footer.php
13
footer.php
@ -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
|
||||
|
||||
@ -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',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user