Changeset 5779 for trunk/wp-includes/wp-db.php
- Timestamp:
- 07/05/2007 05:32:46 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/wp-db.php
r5778 r5779 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 136 $query = str_replace('%s', "'%s'", $query); // quote the strings 135 137 array_walk($args, array(&$this, 'escape_by_ref')); 136 return @ call_user_func_array('sprintf', array_merge(array($query), $args));138 return @vsprintf($query, $args); 137 139 } 138 140
Note: See TracChangeset
for help on using the changeset viewer.