adding html escaping to footer.php info

This commit is contained in:
koenemann 2017-01-27 13:13:42 +01:00
parent 1576a0e3e2
commit 9b07b6f7b8
1 changed files with 3 additions and 5 deletions

View File

@ -24,13 +24,11 @@ $container = get_theme_mod( 'understrap_container_type' );
<footer class="site-footer" id="colophon">
<div class="site-info">
<a href="<?php echo esc_url( __( 'http://wordpress.org/',
'understrap' ) ); ?>"><?php printf( __( 'Proudly powered by %s', 'understrap' ),
'WordPress' ); ?></a>
<a href="<?php echo esc_url( __( 'http://wordpress.org/','understrap' ) ); ?>"><?php printf( __( 'Proudly powered by %s', 'understrap' ),'WordPress' ); ?></a>
<span class="sep"> | </span>
<?php printf( __( 'Theme: %1$s by %2$s.', 'understrap' ), $the_theme->get( 'Name' ),
<?php printf( esc_html__( 'Theme: %1$s by %2$s.', 'understrap' ), $the_theme->get( 'Name' ),
'<a href="http://understrap.com/">understrap.com</a>' ); ?>
(<?php printf( __( 'Version: %1$s', 'understrap' ), $the_theme->get( 'Version' ) ); ?>)
(<?php printf( esc_html__( 'Version: %1$s', 'understrap' ), $the_theme->get( 'Version' ) ); ?>)
</div><!-- .site-info -->
</footer><!-- #colophon -->