Make WordPress Core


Ignore:
Timestamp:
03/01/2013 04:28:40 PM (12 years ago)
Author:
ryan
Message:

Revert 23416, 23419, 23445 except for wp_reset_vars() changes. We are going a different direction with the slashing cleanup, so resetting to a clean slate. see #21767

File:
1 edited

Legend:

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

    r23487 r23554  
    221221 */
    222222function url_shorten( $url ) {
    223     $short_url = str_replace( 'http://', '', $url );
     223    $short_url = str_replace( 'http://', '', stripslashes( $url ));
    224224    $short_url = str_replace( 'www.', '', $short_url );
    225225    $short_url = untrailingslashit( $short_url );
     
    249249                $$var = '';
    250250            else
    251                 $$var = wp_unslash( $_GET[$var] );
     251                $$var = $_GET[$var];
    252252        } else {
    253             $$var = wp_unslash( $_POST[$var] );
     253            $$var = $_POST[$var];
    254254        }
    255255    }
     
    324324        if ( !$user = wp_get_current_user() )
    325325            return;
    326         $option = wp_unslash( $_POST['wp_screen_options']['option'] );
    327         $value = wp_unslash( $_POST['wp_screen_options']['value'] );
     326        $option = $_POST['wp_screen_options']['option'];
     327        $value = $_POST['wp_screen_options']['value'];
    328328
    329329        if ( $option != sanitize_key( $option ) )
Note: See TracChangeset for help on using the changeset viewer.