Changeset 5791 for trunk/wp-includes/wp-db.php
- Timestamp:
- 07/09/2007 05:55:32 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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'));
Note: See TracChangeset
for help on using the changeset viewer.