WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/29/2020 05:24:33 PM (3 months ago)
Author:
whyisjake
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.5/src/wp-includes/functions.php

    r48621 r49377  
    17541754        }
    17551755
    1756         if ( ! $wpdb->get_results( "DESCRIBE $table;" ) ) {
     1756        $described_table = $wpdb->get_results( "DESCRIBE $table;" );
     1757        if ( is_array( $described_table ) && count( $described_table ) === 0 ) {
    17571758            continue;
    17581759        }
Note: See TracChangeset for help on using the changeset viewer.