WordPress.org

Make WordPress Core

Ticket #24462: 24462.patch

File 24462.patch, 1.1 KB (added by SergeyBiryukov, 10 months ago)
  • wp-includes/ms-load.php

     
    240240                die( $msg ); 
    241241        $msg .= '<p>' . __( 'If your site does not display, please contact the owner of this network.' ) . ''; 
    242242        $msg .= ' ' . __( 'If you are the owner of this network please check that MySQL is running properly and all tables are error free.' ) . '</p>'; 
    243         if ( false && !$wpdb->get_var( "SHOW TABLES LIKE '$wpdb->site'" ) ) 
     243        if ( ! $wpdb->get_var( "SHOW TABLES LIKE '$wpdb->site'" ) ) 
    244244                $msg .= '<p>' . sprintf( __( '<strong>Database tables are missing.</strong> This means that MySQL is not running, WordPress was not installed properly, or someone deleted <code>%s</code>. You really should look at your database now.' ), $wpdb->site ) . '</p>'; 
    245245        else 
    246246                $msg .= '<p>' . sprintf( __( '<strong>Could not find site <code>%1$s</code>.</strong> Searched for table <code>%2$s</code> in database <code>%3$s</code>. Is that right?' ), rtrim( $domain . $path, '/' ), $wpdb->blogs, DB_NAME ) . '</p>';