Changeset 32416 for branches/3.7/src/wp-includes/wp-db.php
- Timestamp:
- 05/06/2015 09:13:49 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.7/src/wp-includes/wp-db.php
r32407 r32416 1825 1825 1826 1826 $charsets = $columns = array(); 1827 $results = $this->get_results( "SHOW FULL COLUMNS FROM `$table`" ); 1827 1828 $table_parts = explode( '.', $table ); 1829 $table = '`' . implode( '`.`', $table_parts ) . '`'; 1830 $results = $this->get_results( "SHOW FULL COLUMNS FROM $table" ); 1828 1831 if ( ! $results ) { 1829 1832 return new WP_Error( 'wpdb_get_table_charset_failure' ); … … 2398 2401 . '|UPDATE(?:\s+LOW_PRIORITY)?(?:\s+IGNORE)?' 2399 2402 . '|DELETE(?:\s+LOW_PRIORITY|\s+QUICK|\s+IGNORE)*(?:\s+FROM)?' 2400 . ')\s+ `?([\w-]+)`?/is', $query, $maybe ) ) {2401 return $maybe[1];2403 . ')\s+((?:[0-9a-zA-Z$_.`]|[\xC2-\xDF][\x80-\xBF])+)/is', $query, $maybe ) ) { 2404 return str_replace( '`', '', $maybe[1] ); 2402 2405 } 2403 2406 … … 2406 2409 . 'SHOW\s+TABLE\s+STATUS.+(?:LIKE\s+|WHERE\s+Name\s*=\s*)' 2407 2410 . '|SHOW\s+(?:FULL\s+)?TABLES.+(?:LIKE\s+|WHERE\s+Name\s*=\s*)' 2408 . ')\W( [\w-]+)\W/is', $query, $maybe ) ) {2409 return $maybe[1];2411 . ')\W((?:[0-9a-zA-Z$_.`]|[\xC2-\xDF][\x80-\xBF])+)\W/is', $query, $maybe ) ) { 2412 return str_replace( '`', '', $maybe[1] ); 2410 2413 } 2411 2414 … … 2425 2428 . '|(?:GRANT|REVOKE).*ON\s+TABLE' 2426 2429 . '|SHOW\s+(?:.*FROM|.*TABLE)' 2427 . ')\s+\(*\s* `?([\w-]+)`?\s*\)*/is', $query, $maybe ) ) {2428 return $maybe[1];2430 . ')\s+\(*\s*((?:[0-9a-zA-Z$_.`]|[\xC2-\xDF][\x80-\xBF])+)\s*\)*/is', $query, $maybe ) ) { 2431 return str_replace( '`', '', $maybe[1] ); 2429 2432 } 2430 2433
Note: See TracChangeset
for help on using the changeset viewer.