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

    r23437 r23554  
    473473        _deprecated_function( __FUNCTION__, '3.1', 'WP_User_Query' );
    474474
    475         $this->search_term = $search_term;
     475        $this->search_term = stripslashes( $search_term );
    476476        $this->raw_page = ( '' == $page ) ? false : (int) $page;
    477477        $this->page = (int) ( '' == $page ) ? 1 : $page;
     
    480480        $this->prepare_query();
    481481        $this->query();
     482        $this->prepare_vars_for_template_usage();
    482483        $this->do_paging();
    483484    }
     
    550551     * @access public
    551552     */
    552     function prepare_vars_for_template_usage() {}
     553    function prepare_vars_for_template_usage() {
     554        $this->search_term = stripslashes($this->search_term); // done with DB, from now on we want slashes gone
     555    }
    553556
    554557    /**
Note: See TracChangeset for help on using the changeset viewer.