Changeset 1188
- Timestamp:
- 01/24/2015 01:34:53 PM (10 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/content-single.php
r1156 r1188 157 157 <?php 158 158 foreach( $theme->tags as &$tag ) : 159 $tag = sprintf( '<a href=" /tag/%1$s/">%1$s</a>', $tag );159 $tag = sprintf( '<a href="%1$s">%2$s</a>', esc_url( home_url( "/tag/{$tag}/" ) ), $tag ); 160 160 endforeach; 161 161 echo implode( ', ', $theme->tags ); -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/js/theme.js
r1155 r1188 43 43 // Make tags clickable and seprated by a comma. 44 44 data.tags = _.map( data.tags, function( tag ) { 45 return '<a href=" /tag/'+tag+'/">'+tag+'</a>';45 return '<a href="'+wp.themes.data.settings.adminUrl+'tag/'+tag+'/">'+tag+'</a>'; 46 46 }).join( ', ' ); 47 47
Note: See TracChangeset
for help on using the changeset viewer.