Changeset 22118 for trunk/wp-includes/wp-db.php
- Timestamp:
- 10/04/2012 08:00:16 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/wp-db.php
r21807 r22118 535 535 */ 536 536 function __construct( $dbuser, $dbpassword, $dbname, $dbhost ) { 537 register_shutdown_function( array( &$this, '__destruct' ) );537 register_shutdown_function( array( $this, '__destruct' ) ); 538 538 539 539 if ( WP_DEBUG ) … … 1001 1001 $query = str_replace( '%f' , '%F', $query ); // Force floats to be locale unaware 1002 1002 $query = preg_replace( '|(?<!%)%s|', "'%s'", $query ); // quote the strings, avoiding escaped strings like %%s 1003 array_walk( $args, array( &$this, 'escape_by_ref' ) );1003 array_walk( $args, array( $this, 'escape_by_ref' ) ); 1004 1004 return @vsprintf( $query, $args ); 1005 1005 }
Note: See TracChangeset
for help on using the changeset viewer.