Escape profile

This commit is contained in:
Alexander Agnarson 2021-02-24 14:54:20 +01:00
parent aa8f6d24c9
commit 2e0d2c4a34

View file

@ -98,13 +98,13 @@
<div id="profile" class="pad group">
<div id="profile-inner">
<?php if ( get_theme_mod('profile-image') ): ?>
<div id="profile-image"><img src="<?php echo get_theme_mod('profile-image'); ?>" alt="" /></div>
<div id="profile-image"><img src="<?php echo esc_html( get_theme_mod('profile-image') ); ?>" alt="" /></div>
<?php endif; ?>
<?php if ( get_theme_mod('profile-name') ): ?>
<div id="profile-name"><?php echo get_theme_mod('profile-name'); ?></div>
<div id="profile-name"><?php echo esc_html( get_theme_mod('profile-name') ); ?></div>
<?php endif; ?>
<?php if ( get_theme_mod('profile-description') ): ?>
<div id="profile-description"><?php echo get_theme_mod('profile-description'); ?></div>
<div id="profile-description"><?php echo wp_kses_post( get_theme_mod('profile-description') ); ?></div>
<?php endif; ?>
</div>
</div>