WordPress.org

Make WordPress Core

Ticket #11804: 11804-is_blog_installed.patch

File 11804-is_blog_installed.patch, 751 bytes (added by hakre, 3 years ago)

Another access violation in is_blog_installed() in /wp-includes/functions.php.

  • wp-includes/functions.php

    ### Eclipse Workspace Patch 1.0
    #P wordpress-trunk
     
    17871787        // Loop over the WP tables.  If none exist, then scratch install is allowed. 
    17881788        // If one or more exist, suggest table repair since we got here because the options 
    17891789        // table could not be accessed. 
    1790         foreach ($wpdb->tables as $table) { 
     1790        foreach ( $wpdb->get_tables( 'all' ) as $table ) { 
    17911791                // If one of the WP tables exist, then we are in an insane state. 
    17921792                if ( in_array($wpdb->prefix . $table, $tables) ) { 
    17931793                        // If visiting repair.php, return true and let it take over.