Changeset 45590 for trunk/src/wp-includes/wp-db.php
- Timestamp:
- 07/02/2019 11:41:16 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/wp-db.php
r45430 r45590 1439 1439 wp_load_translations_early(); 1440 1440 1441 if ( $caller = $this->get_caller() ) { 1441 $caller = $this->get_caller(); 1442 if ( $caller ) { 1442 1443 /* translators: 1: Database error message, 2: SQL query, 3: Name of the calling function */ 1443 1444 $error_str = sprintf( __( 'WordPress database error %1$s for query %2$s made by %3$s' ), $str, $this->last_query, $caller ); … … 1544 1545 $this->col_info = null; 1545 1546 $this->last_query = null; 1546 $this->rows_affected = $this->num_rows = 0; 1547 $this->rows_affected = 0; 1548 $this->num_rows = 0; 1547 1549 $this->last_error = ''; 1548 1550 … … 1595 1597 $is_ipv6 = false; 1596 1598 1597 if ( $host_data = $this->parse_db_host( $this->dbhost ) ) { 1599 $host_data = $this->parse_db_host( $this->dbhost ); 1600 if ( $host_data ) { 1598 1601 list( $host, $port, $socket, $is_ipv6 ) = $host_data; 1599 1602 } … … 2162 2165 } 2163 2166 2164 $formats = $values = array(); 2167 $formats = array(); 2168 $values = array(); 2165 2169 foreach ( $data as $value ) { 2166 2170 if ( is_null( $value['value'] ) ) { … … 2226 2230 } 2227 2231 2228 $fields = $conditions = $values = array(); 2232 $fields = array(); 2233 $conditions = array(); 2234 $values = array(); 2229 2235 foreach ( $data as $field => $value ) { 2230 2236 if ( is_null( $value['value'] ) ) { … … 2287 2293 } 2288 2294 2289 $conditions = $values = array(); 2295 $conditions = array(); 2296 $values = array(); 2290 2297 foreach ( $where as $field => $value ) { 2291 2298 if ( is_null( $value['value'] ) ) { … … 2359 2366 */ 2360 2367 protected function process_field_formats( $data, $format ) { 2361 $formats = $original_formats = (array) $format; 2368 $formats = (array) $format; 2369 $original_formats = $formats; 2362 2370 2363 2371 foreach ( $data as $field => $value ) { … … 2651 2659 } 2652 2660 2653 $charsets = $columns = array(); 2661 $charsets = array(); 2662 $columns = array(); 2654 2663 2655 2664 $table_parts = explode( '.', $table ); … … 3049 3058 3050 3059 // We couldn't use any local conversions, send it to the DB. 3051 $value['db'] = $db_check_string = true; 3060 $value['db'] = true; 3061 $db_check_string = true; 3052 3062 } 3053 3063 unset( $value ); // Remove by reference.
Note: See TracChangeset
for help on using the changeset viewer.