escape the permalink

This commit is contained in:
Sean Davis 2014-05-02 01:17:02 -05:00
parent c89d030c6b
commit 8b30ee99f7
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php the_title( sprintf( '<h1 class="entry-title"><a href="%s" rel="bookmark">', get_permalink() ), '</a></h1>' ); ?>
<?php the_title( sprintf( '<h1 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h1>' ); ?>
<?php if ( 'post' == get_post_type() ) : ?>
<div class="entry-meta">