mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-20 13:38:37 +00:00
Upgrade/install: Improve logic check when determining installation status.
Improve handling of ambiguous return values to determine if a blog is installed. Props zieladam, xknown. Built from https://develop.svn.wordpress.org/branches/5.5@49377 git-svn-id: http://core.svn.wordpress.org/branches/5.5@49136 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
107e7856e6
commit
951e583bb4
@ -1753,7 +1753,8 @@ function is_blog_installed() {
|
||||
continue;
|
||||
}
|
||||
|
||||
if ( ! $wpdb->get_results( "DESCRIBE $table;" ) ) {
|
||||
$described_table = $wpdb->get_results( "DESCRIBE $table;" );
|
||||
if ( is_array( $described_table ) && count( $described_table ) === 0 ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.5.2-alpha-49376';
|
||||
$wp_version = '5.5.2-alpha-49377';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
x
Reference in New Issue
Block a user