Changeset 11383 for trunk/wp-includes/link-template.php
- Timestamp:
- 05/18/2009 04:00:33 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/link-template.php
r11364 r11383 1316 1316 */ 1317 1317 function next_posts( $max_page = 0, $echo = true ) { 1318 $output = clean_url( get_next_posts_page_link( $max_page ) );1318 $output = esc_url( get_next_posts_page_link( $max_page ) ); 1319 1319 1320 1320 if ( $echo ) … … 1394 1394 */ 1395 1395 function previous_posts( $echo = true ) { 1396 $output = clean_url( get_previous_posts_page_link() );1396 $output = esc_url( get_previous_posts_page_link() ); 1397 1397 1398 1398 if ( $echo ) … … 1551 1551 $label = __('Newer Comments »'); 1552 1552 1553 return '<a href="' . clean_url( get_comments_pagenum_link( $nextpage, $max_page ) ) . '" ' . apply_filters( 'next_comments_link_attributes', '' ) . '>'. preg_replace('/&([^#])(?![a-z]{1,8};)/', '&$1', $label) .'</a>';1553 return '<a href="' . esc_url( get_comments_pagenum_link( $nextpage, $max_page ) ) . '" ' . apply_filters( 'next_comments_link_attributes', '' ) . '>'. preg_replace('/&([^#])(?![a-z]{1,8};)/', '&$1', $label) .'</a>'; 1554 1554 } 1555 1555 … … 1588 1588 $label = __('« Older Comments'); 1589 1589 1590 return '<a href="' . clean_url( get_comments_pagenum_link( $prevpage ) ) . '" ' . apply_filters( 'previous_comments_link_attributes', '' ) . '>' . preg_replace('/&([^#])(?![a-z]{1,8};)/', '&$1', $label) .'</a>';1590 return '<a href="' . esc_url( get_comments_pagenum_link( $prevpage ) ) . '" ' . apply_filters( 'previous_comments_link_attributes', '' ) . '>' . preg_replace('/&([^#])(?![a-z]{1,8};)/', '&$1', $label) .'</a>'; 1591 1591 } 1592 1592
Note: See TracChangeset
for help on using the changeset viewer.