Skip to content

Commit

Permalink
Escape out put and use template tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Fields committed Apr 6, 2011
1 parent b379d4b commit 298abf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions longdesc-template.php
Expand Up @@ -13,8 +13,8 @@
if( isset( $_GET['referrer'] ) ) { if( isset( $_GET['referrer'] ) ) {
$uri = get_permalink( (int) $_GET['referrer'] ); $uri = get_permalink( (int) $_GET['referrer'] );
if( !empty( $uri ) ) { if( !empty( $uri ) ) {
$uri.= '#' . longdesc_return_anchor( $id ); $uri.= '#' . longdesc_return_anchor( get_the_ID() );
print '<p><a href="' . $uri . '">' . __( 'Return to article.', 'longdesc' ) . '</a></p>'; print '<p><a href="' . esc_url( $uri ) . '">' .esc_html__( 'Return to article.', 'longdesc' ) . '</a></p>';
} }
} }
?> ?>
Expand Down

0 comments on commit 298abf5

Please sign in to comment.