Changeset 5037 for trunk/includes/topics/template-tags.php
- Timestamp:
- 07/17/2013 07:35:03 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/includes/topics/template-tags.php (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/topics/template-tags.php
r5004 r5037 513 513 */ 514 514 function bbp_topic_permalink( $topic_id = 0, $redirect_to = '' ) { 515 echo bbp_get_topic_permalink( $topic_id, $redirect_to);515 echo esc_url( bbp_get_topic_permalink( $topic_id, $redirect_to ) ); 516 516 } 517 517 /** … … 1477 1477 */ 1478 1478 function bbp_topic_author_url( $topic_id = 0 ) { 1479 echo bbp_get_topic_author_url( $topic_id);1479 echo esc_url( bbp_get_topic_author_url( $topic_id ) ); 1480 1480 } 1481 1481 … … 1815 1815 */ 1816 1816 function bbp_topic_last_reply_permalink( $topic_id = 0 ) { 1817 echo bbp_get_topic_last_reply_permalink( $topic_id);1817 echo esc_url( bbp_get_topic_last_reply_permalink( $topic_id ) ); 1818 1818 } 1819 1819 /** … … 1844 1844 */ 1845 1845 function bbp_topic_last_reply_url( $topic_id = 0 ) { 1846 echo bbp_get_topic_last_reply_url( $topic_id);1846 echo esc_url( bbp_get_topic_last_reply_url( $topic_id ) ); 1847 1847 } 1848 1848 /** … … 1907 1907 1908 1908 if ( !empty( $time_since ) ) 1909 $anchor = '<a href="' . $link_url . '" title="' . esc_attr( $title ) . '">' . $time_since. '</a>';1909 $anchor = '<a href="' . esc_url( $link_url ) . '" title="' . esc_attr( $title ) . '">' . esc_html( $time_since ) . '</a>'; 1910 1910 else 1911 1911 $anchor = __( 'No Replies', 'bbpress' ); … … 2359 2359 return; 2360 2360 2361 $retval = $r['link_before'] . '<a href="' . $uri. '">' . $r['edit_text'] . '</a>' . $r['link_after'];2361 $retval = $r['link_before'] . '<a href="' . esc_url( $uri ) . '">' . $r['edit_text'] . '</a>' . $r['link_after']; 2362 2362 2363 2363 return apply_filters( 'bbp_get_topic_edit_link', $retval, $r ); … … 2373 2373 */ 2374 2374 function bbp_topic_edit_url( $topic_id = 0 ) { 2375 echo bbp_get_topic_edit_url( $topic_id);2375 echo esc_url( bbp_get_topic_edit_url( $topic_id ) ); 2376 2376 } 2377 2377 /** … … 3243 3243 */ 3244 3244 function bbp_topic_tag_link( $tag = '' ) { 3245 echo bbp_get_topic_tag_link( $tag);3245 echo esc_url( bbp_get_topic_tag_link( $tag ) ); 3246 3246 } 3247 3247 /** … … 3287 3287 */ 3288 3288 function bbp_topic_tag_edit_link( $tag = '' ) { 3289 echo bbp_get_topic_tag_edit_link( $tag);3289 echo esc_url( bbp_get_topic_tag_edit_link( $tag ) ); 3290 3290 } 3291 3291 /**
Note: See TracChangeset
for help on using the changeset viewer.