WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/18/2009 04:00:33 PM (12 years ago)
Author:
markjaquith
Message:

Deprecate sanitize_url() and clean_url() in favor of esc_url_raw() and esc_url()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/link-template.php

    r11364 r11383  
    13161316 */
    13171317function 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 ) );
    13191319
    13201320    if ( $echo )
     
    13941394 */
    13951395function previous_posts( $echo = true ) {
    1396     $output = clean_url( get_previous_posts_page_link() );
     1396    $output = esc_url( get_previous_posts_page_link() );
    13971397
    13981398    if ( $echo )
     
    15511551        $label = __('Newer Comments »');
    15521552
    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};)/', '&#038;$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};)/', '&#038;$1', $label) .'</a>';
    15541554}
    15551555
     
    15881588        $label = __('&laquo; Older Comments');
    15891589
    1590     return '<a href="' . clean_url( get_comments_pagenum_link( $prevpage ) ) . '" ' . apply_filters( 'previous_comments_link_attributes', '' ) . '>' . preg_replace('/&([^#])(?![a-z]{1,8};)/', '&#038;$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};)/', '&#038;$1', $label) .'</a>';
    15911591}
    15921592
Note: See TracChangeset for help on using the changeset viewer.