1911 | | // If one of the WP tables exist, then we are in an insane state. |
1912 | | if ( in_array( $table, $tables ) ) { |
1913 | | // The existence of custom user tables shouldn't suggest an insane state or prevent a clean install. |
1914 | | if ( defined( 'CUSTOM_USER_TABLE' ) && CUSTOM_USER_TABLE == $table ) |
1915 | | continue; |
1916 | | if ( defined( 'CUSTOM_USER_META_TABLE' ) && CUSTOM_USER_META_TABLE == $table ) |
1917 | | continue; |
| 1913 | // The existence of custom user tables shouldn't suggest an insane state or prevent a clean install. |
| 1914 | if ( defined( 'CUSTOM_USER_TABLE' ) && CUSTOM_USER_TABLE == $table ) |
| 1915 | continue; |
| 1916 | if ( defined( 'CUSTOM_USER_META_TABLE' ) && CUSTOM_USER_META_TABLE == $table ) |
| 1917 | continue; |
1919 | | // If visiting repair.php, return true and let it take over. |
1920 | | if ( defined('WP_REPAIRING') ) |
1921 | | return true; |
1922 | | // Die with a DB error. |
1923 | | $wpdb->error = sprintf( /*WP_I18N_NO_TABLES*/'One or more database tables are unavailable. The database may need to be <a href="%s">repaired</a>.'/*/WP_I18N_NO_TABLES*/, 'maint/repair.php?referrer=is_blog_installed' ); |
1924 | | dead_db(); |
1925 | | } |
| 1919 | if ( ! $wpdb->get_results( "DESCRIBE $table;" ) ) |
| 1920 | continue; |
| 1921 | |
| 1922 | // One or more tables exist. We are insane. |
| 1923 | |
| 1924 | // Die with a DB error. |
| 1925 | $wpdb->error = sprintf( /*WP_I18N_NO_TABLES*/'One or more database tables are unavailable. The database may need to be <a href="%s">repaired</a>.'/*/WP_I18N_NO_TABLES*/, 'maint/repair.php?referrer=is_blog_installed' ); |
| 1926 | dead_db(); |