Ticket #40694: b.diff
File b.diff, 682 bytes (added by , 8 years ago) |
---|
-
src/wp-admin/includes/upgrade.php
2211 2211 } 2212 2212 2213 2213 // Fetch the table column structure from the database 2214 $suppress = $wpdb->suppress_errors(); 2215 $tablefields = $wpdb->get_results("DESCRIBE {$table};"); 2216 $wpdb->suppress_errors( $suppress ); 2214 $tablefields = false; 2215 $table_exists = $wpdb->get_var( "SHOW TABLES LIKE '$table'" ); 2216 if ( $table_exists === $table ) { 2217 $tablefields = $wpdb->get_results( "DESCRIBE {$table};" ); 2218 } 2217 2219 2218 2220 if ( ! $tablefields ) 2219 2221 continue;