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-admin/includes/post.php

    r11380 r11383  
    334334        $text       = esc_html( stripslashes( urldecode( $_REQUEST['text'] ) ) );
    335335        $text       = funky_javascript_fix( $text);
    336         $popupurl   = clean_url($_REQUEST['popupurl']);
     336        $popupurl   = esc_url($_REQUEST['popupurl']);
    337337        $post_content = '<a href="'.$popupurl.'">'.$post_title.'</a>'."\n$text";
    338338    }
Note: See TracChangeset for help on using the changeset viewer.