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/edit-page-form.php

    r11380 r11383  
    8282<?php
    8383if ( 'publish' == $post->post_status ) {
    84     $preview_link = clean_url(get_permalink($post->ID));
     84    $preview_link = esc_url(get_permalink($post->ID));
    8585    $preview_button = __('Preview Changes');
    8686} else {
    87     $preview_link = clean_url(apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID))));
     87    $preview_link = esc_url(apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID))));
    8888    $preview_button = __('Preview');
    8989}
     
    421421<input type="hidden" id="post_type" name="post_type" value="<?php echo esc_attr($post->post_type) ?>" />
    422422<input type="hidden" id="original_post_status" name="original_post_status" value="<?php echo esc_attr($post->post_status) ?>" />
    423 <input name="referredby" type="hidden" id="referredby" value="<?php echo clean_url(stripslashes(wp_get_referer())); ?>" />
     423<input name="referredby" type="hidden" id="referredby" value="<?php echo esc_url(stripslashes(wp_get_referer())); ?>" />
    424424<?php if ( 'draft' != $post->post_status ) wp_original_referer_field(true, 'previous'); ?>
    425425
Note: See TracChangeset for help on using the changeset viewer.