WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/01/2013 05:00:25 PM (9 years ago)
Author:
ryan
Message:

Use wp_unslash() instead of stripslashes() and stripslashes_deep(). Use wp_slash() instead of add_magic_quotes().

see #21767

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/misc.php

    r23554 r23563  
    221221 */
    222222function url_shorten( $url ) {
    223     $short_url = str_replace( 'http://', '', stripslashes( $url ));
     223    $short_url = str_replace( 'http://', '', wp_unslash( $url ));
    224224    $short_url = str_replace( 'www.', '', $short_url );
    225225    $short_url = untrailingslashit( $short_url );
Note: See TracChangeset for help on using the changeset viewer.