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/default-filters.php

    r11380 r11383  
    4444    add_filter($filter, 'strip_tags');
    4545    add_filter($filter, 'trim');
    46     add_filter($filter, 'sanitize_url');
     46    add_filter($filter, 'esc_url_raw');
    4747    add_filter($filter, 'wp_filter_kses');
    4848}
     
    5353    add_filter($filter, 'strip_tags');
    5454    add_filter($filter, 'trim');
    55     add_filter($filter, 'clean_url');
     55    add_filter($filter, 'esc_url');
    5656    add_filter($filter, 'wp_filter_kses');
    5757}
Note: See TracChangeset for help on using the changeset viewer.