fixing some escaping problems

This commit is contained in:
koenemann 2017-02-02 09:35:37 +01:00
parent c94d17603a
commit 7c4f217ca9
2 changed files with 3 additions and 3 deletions

View File

@ -26,9 +26,9 @@ $container = get_theme_mod( 'understrap_container_type' );
<div class="site-info"> <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> <span class="sep"> | </span>
<?php printf( esc_html__( '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( esc_html__( 'Name' ) ),
'<a href="http://understrap.com/">understrap.com</a>' ); ?> '<a href="http://understrap.com/">understrap.com</a>' ); ?>
(<?php printf( esc_html__( 'Version: %1$s', 'understrap' ), $the_theme->get( 'Version' ) ); ?>) (<?php printf( esc_html__( 'Version: %1$s', 'understrap' ), $the_theme->get( esc_html__( 'Version' ) ) ); ?>)
</div><!-- .site-info --> </div><!-- .site-info -->
</footer><!-- #colophon --> </footer><!-- #colophon -->

View File

@ -82,7 +82,7 @@ function understrap_pagination() {
$class = $paged == $max ? ' class="active "' : ' class="page-item"'; $class = $paged == $max ? ' class="active "' : ' class="page-item"';
printf( '<li %s><a class="page-link" href="%s" aria-label="Next"><span aria-hidden="true"><i class="fa fa-step-forward" aria-hidden="true"></i></span><span class="sr-only">%s</span></a></li>' . "\n", printf( '<li %s><a class="page-link" href="%s" aria-label="Next"><span aria-hidden="true"><i class="fa fa-step-forward" aria-hidden="true"></i></span><span class="sr-only">%s</span></a></li>' . "\n",
$class . ' page-item 9', esc_url( get_pagenum_link( esc_html( $max ) ) ), esc_html($max ) ); $class . ' page-item 9', esc_url( get_pagenum_link( esc_html( $max ) ) ), esc_html( $max ) );
} }
echo '</ul></nav>' . "\n"; echo '</ul></nav>' . "\n";