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/plugins.php

    r11380 r11383  
    135135                    </ul>
    136136                <p><?php _e('Are you sure you wish to delete these files?') ?></p>
    137                 <form method="post" action="<?php echo clean_url($_SERVER['REQUEST_URI']); ?>" style="display:inline;">
     137                <form method="post" action="<?php echo esc_url($_SERVER['REQUEST_URI']); ?>" style="display:inline;">
    138138                    <input type="hidden" name="verify-delete" value="1" />
    139139                    <input type="hidden" name="action" value="delete-selected" />
     
    145145                    <input type="submit" name="submit" value="<?php esc_attr_e('Yes, Delete these files') ?>" class="button" />
    146146                </form>
    147                 <form method="post" action="<?php echo clean_url(wp_get_referer()); ?>" style="display:inline;">
     147                <form method="post" action="<?php echo esc_url(wp_get_referer()); ?>" style="display:inline;">
    148148                    <input type="submit" name="submit" value="<?php esc_attr_e('No, Return me to the plugin list') ?>" class="button" />
    149149                </form>
Note: See TracChangeset for help on using the changeset viewer.