Make WordPress Core

Ticket #51676: 51676.4.diff

File 51676.4.diff, 544 bytes (added by xknown, 4 years ago)
  • src/wp-includes/functions.php

    diff --git src/wp-includes/functions.php src/wp-includes/functions.php
    index 3d0412630e..5c44f37e8a 100644
    function is_blog_installed() { 
    17571757                }
    17581758
    17591759                $described_table = $wpdb->get_results( "DESCRIBE $table;" );
    1760                 if ( is_array( $described_table ) && count( $described_table ) === 0 ) {
     1760                if (
     1761                        ( ! $described_table && empty( $wpdb->last_error ) ) ||
     1762                        ( is_array( $described_table ) && 0 === count( $described_table ) )
     1763                ) {
    17611764                        continue;
    17621765                }
    17631766