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/theme-install.php

    r11380 r11383  
    310310    ?>
    311311<a class='thickbox thickbox-preview screenshot'
    312     href='<? echo clean_url($preview_link); ?>'
     312    href='<? echo esc_url($preview_link); ?>'
    313313    title='<?php echo esc_attr(sprintf(__('Preview &#8220;%s&#8221;'), $name)); ?>'>
    314 <img src='<?php echo clean_url($theme->screenshot_url); ?>' width='150' />
     314<img src='<?php echo esc_url($theme->screenshot_url); ?>' width='150' />
    315315</a>
    316316<h3><?php echo $name ?></h3>
     
    375375<div class="alignleft actions"><?php do_action('install_themes_table_header'); ?></div>
    376376    <?php
    377     $url = clean_url($_SERVER['REQUEST_URI']);
     377    $url = esc_url($_SERVER['REQUEST_URI']);
    378378    if ( ! empty($term) )
    379379        $url = add_query_arg('s', $term, $url);
     
    503503
    504504<div class='available-theme'>
    505 <img src='<?php echo clean_url($api->screenshot_url) ?>' width='300' class="theme-preview-img" />
     505<img src='<?php echo esc_url($api->screenshot_url) ?>' width='300' class="theme-preview-img" />
    506506<h3><?php echo $api->name; ?></h3>
    507507<p><?php printf(__('by %s'), $api->author); ?></p>
Note: See TracChangeset for help on using the changeset viewer.