Make WordPress Core


Ignore:
Timestamp:
10/29/2020 06:03:35 PM (4 years ago)
Author:
desrosj
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.
Merges [49377] to trunk.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/wp-includes/functions.php

    r49235 r49386  
    17571757        }
    17581758
    1759         if ( ! $wpdb->get_results( "DESCRIBE $table;" ) ) {
     1759        $described_table = $wpdb->get_results( "DESCRIBE $table;" );
     1760        if ( is_array( $described_table ) && count( $described_table ) === 0 ) {
    17601761            continue;
    17611762        }
Note: See TracChangeset for help on using the changeset viewer.