Ticket #9292: 9292.diff
File 9292.diff, 585 bytes (added by , 16 years ago) |
---|
-
wp-includes/wp-db.php
503 503 $args = func_get_args(); 504 504 $query = array_shift($args); 505 505 // If args were passed as an array, move them up 506 if ( is _array($args[0]) )506 if ( isset($args[0]) && is_array($args[0]) ) 507 507 $args = $args[0]; 508 508 $query = str_replace("'%s'", '%s', $query); // in case someone mistakenly already singlequoted it 509 509 $query = str_replace('"%s"', '%s', $query); // doublequote unquoting