Changeset 5791

Show
Ignore:
Timestamp:
07/09/07 17:55:32 (1 year ago)
Author:
markjaquith
Message:

Undo pre-doublequoting in prepare(). Props JeremyVisser?. see #4553

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/wp-db.php

    r5779 r5791  
    133133        $args = func_get_args(); 
    134134        $query = array_shift($args); 
    135         $query = str_replace("'%s'", '%s', $query); // in case someone mistakenly already quoted it 
     135        $query = str_replace("'%s'", '%s', $query); // in case someone mistakenly already singlequoted it 
     136        $query = str_replace('"%s"', '%s', $query); // doublequote unquoting 
    136137        $query = str_replace('%s', "'%s'", $query); // quote the strings 
    137138        array_walk($args, array(&$this, 'escape_by_ref'));