Ticket #22873: 22873.patch
| File 22873.patch, 772 bytes (added by , 13 years ago) |
|---|
-
wp-includes/wp-db.php
987 987 * @return null|false|string Sanitized query string, null if there is no query, false if there is an error and string 988 988 * if there was something to prepare 989 989 */ 990 function prepare( $query, $args ) {990 function prepare( $query, $args = null ) { 991 991 if ( is_null( $query ) ) 992 992 return; 993 993 994 if ( is_null( $args ) ) 995 _doing_it_wrong( __METHOD__, sprintf( __( 'The %s parameter should not be empty.' ), '<code>$args</code>' ), '3.5' ); 996 994 997 $args = func_get_args(); 995 998 array_shift( $args ); 996 999 // If args were passed as an array (as in vsprintf), move them up