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

    r23554 r23563  
    473473        _deprecated_function( __FUNCTION__, '3.1', 'WP_User_Query' );
    474474
    475         $this->search_term = stripslashes( $search_term );
     475        $this->search_term = wp_unslash( $search_term );
    476476        $this->raw_page = ( '' == $page ) ? false : (int) $page;
    477477        $this->page = (int) ( '' == $page ) ? 1 : $page;
     
    552552     */
    553553    function prepare_vars_for_template_usage() {
    554         $this->search_term = stripslashes($this->search_term); // done with DB, from now on we want slashes gone
     554        $this->search_term = wp_unslash($this->search_term); // done with DB, from now on we want slashes gone
    555555    }
    556556
Note: See TracChangeset for help on using the changeset viewer.