Escape home_url() in #site-title link

We escape the URL when displaying custom-header.php and searchform.php, which leads me to believe it should also be escaped here.
This commit is contained in:
sixhours 2012-11-20 10:37:37 -05:00
parent a395e1f7a3
commit c2c282e983
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@
<?php do_action( 'before' ); ?> <?php do_action( 'before' ); ?>
<header id="masthead" class="site-header" role="banner"> <header id="masthead" class="site-header" role="banner">
<hgroup> <hgroup>
<h1 class="site-title"><a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2> <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
</hgroup> </hgroup>