mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-14 14:45:45 +01:00
Upgrade/Install: During the install process, add additional checking for exising tables.
This commit brings the changes in [49452] to the 5.5 branch. If reinstalling WordPress, there is a condition where tables would exist in the database. Ensures that when that is the case, the install process can carry along without issue. Fixes #51676. Props xknown, garubi, mukesh27, desrosj, johnbillion, metalandcoffee, davidbaumwald, whyisjake. Built from https://develop.svn.wordpress.org/branches/5.5@49453 git-svn-id: http://core.svn.wordpress.org/branches/5.5@49212 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1efd16777a
commit
fd75e76255
@ -1754,7 +1754,10 @@ function is_blog_installed() {
|
||||
}
|
||||
|
||||
$described_table = $wpdb->get_results( "DESCRIBE $table;" );
|
||||
if ( is_array( $described_table ) && count( $described_table ) === 0 ) {
|
||||
if (
|
||||
( ! $described_table && empty( $wpdb->last_error ) ) ||
|
||||
( is_array( $described_table ) && 0 === count( $described_table ) )
|
||||
) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.5.3-alpha-49449';
|
||||
$wp_version = '5.5.3-alpha-49453';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user