Permalink
Browse files

Escape out put and use template tags.

  • Loading branch information...
1 parent b379d4b commit 298abf54ae25ad480b2e1c5c2a1d3e8845dd056f @mfields committed Apr 6, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 longdesc-template.php
View
@@ -13,8 +13,8 @@
if( isset( $_GET['referrer'] ) ) {
$uri = get_permalink( (int) $_GET['referrer'] );
if( !empty( $uri ) ) {
- $uri.= '#' . longdesc_return_anchor( $id );
- print '<p><a href="' . $uri . '">' . __( 'Return to article.', 'longdesc' ) . '</a></p>';
+ $uri.= '#' . longdesc_return_anchor( get_the_ID() );
+ print '<p><a href="' . esc_url( $uri ) . '">' .esc_html__( 'Return to article.', 'longdesc' ) . '</a></p>';
}
}
?>

0 comments on commit 298abf5

Please sign in to comment.