mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-06 07:36:58 +00:00
Changes to options system and query improvements.
git-svn-id: https://develop.svn.wordpress.org/trunk@1401 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
+5
-6
@@ -47,12 +47,6 @@ if ( !(phpversion() >= '4.1') )
|
||||
die( 'Your server is running PHP version ' . phpversion() . ' but WordPress requires at least 4.1' );
|
||||
|
||||
|
||||
$wpdb->hide_errors();
|
||||
$users = $wpdb->get_results("SELECT * FROM $wpdb->users");
|
||||
if ( !$users && !strstr($_SERVER['PHP_SELF'], 'install.php') )
|
||||
die("It doesn't look like you've installed WP yet. Try running <a href='wp-admin/install.php'>install.php</a>.");
|
||||
$wpdb->show_errors();
|
||||
|
||||
require (ABSPATH . WPINC . '/functions.php');
|
||||
require (ABSPATH . WPINC . '/functions-formatting.php');
|
||||
require (ABSPATH . WPINC . '/template-functions.php');
|
||||
@@ -60,6 +54,11 @@ require (ABSPATH . WPINC . '/links.php');
|
||||
require (ABSPATH . WPINC . '/kses.php');
|
||||
require_once (ABSPATH . WPINC . '/wp-l10n.php');
|
||||
|
||||
$wpdb->hide_errors();
|
||||
if ( !update_user_cache() && !strstr($_SERVER['PHP_SELF'], 'install.php') )
|
||||
die("It doesn't look like you've installed WP yet. Try running <a href='wp-admin/install.php'>install.php</a>.");
|
||||
$wpdb->show_errors();
|
||||
|
||||
if (!strstr($_SERVER['PHP_SELF'], 'install.php') && !strstr($_SERVER['PHP_SELF'], 'wp-admin/import')) {
|
||||
|
||||
$querystring_start = '?';
|
||||
|
||||
Reference in New Issue
Block a user