WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/18/2009 04:00:33 PM (13 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/custom-header.php

    r11204 r11383  
    279279<p><?php _e('This is your header image. You can change the text color or upload and crop a new image.'); ?></p>
    280280
    281 <div id="headimg" style="background-image: url(<?php clean_url(header_image()) ?>);">
     281<div id="headimg" style="background-image: url(<?php esc_url(header_image()) ?>);">
    282282<h1><a onclick="return false;" href="<?php bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>" id="name"><?php bloginfo('name'); ?></a></h1>
    283283<div id="desc"><?php bloginfo('description');?></div>
     
    355355            wp_update_attachment_metadata( $id, wp_generate_attachment_metadata( $id, $file ) );
    356356
    357             set_theme_mod('header_image', clean_url($url));
     357            set_theme_mod('header_image', esc_url($url));
    358358            do_action('wp_create_file_in_uploads', $file, $id); // For replication
    359359            return $this->finished();
Note: See TracChangeset for help on using the changeset viewer.