Changeset 5791
- Timestamp:
- 07/09/07 17:55:32 (1 year ago)
- Files:
-
- trunk/wp-includes/wp-db.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-includes/wp-db.php
r5779 r5791 133 133 $args = func_get_args(); 134 134 $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 136 137 $query = str_replace('%s', "'%s'", $query); // quote the strings 137 138 array_walk($args, array(&$this, 'escape_by_ref'));
