Permalink
Browse files

Use sanitize_html_class() just for added measure.

  • Loading branch information...
1 parent ce958bf commit 8536d63aa26816df44189b9c57edad6f3a32ff2f @justintadlock committed Aug 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 includes/shortcodes.php
View
@@ -35,7 +35,7 @@ function news_entry_shortlink_popup_shortcode() {
if ( empty( $shortlink ) )
return '';
- $id = 'shortlink-' . get_the_ID();
+ $id = sanitize_html_class( 'shortlink-' . get_the_ID() );
$title = sprintf( __( "Shortlink for '%s'", 'news' ), get_the_title() );
$out = '<a class="tips shortlink hide-if-no-js" rel="#' . $id . '" title="' . esc_attr( $title ) . '">' . __( 'Shortlink', 'news' ) . '</a>';
$out .= ' <div id="' . $id . '" class="tip hide">';

0 comments on commit 8536d63

Please sign in to comment.