Fix for empty plugin strings, class include moved for timing.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1530 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
baec4b25a7
commit
da4a0d988e
|
@ -6,6 +6,10 @@ $HTTP_USER_AGENT = getenv('HTTP_USER_AGENT'); /* visitor's browser */
|
||||||
// Fix for IIS, which doesn't set REQUEST_URI
|
// Fix for IIS, which doesn't set REQUEST_URI
|
||||||
$_SERVER['REQUEST_URI'] = ( isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : $_SERVER['SCRIPT_NAME'] . (( isset($_SERVER['QUERY_STRING']) ? '?' . $_SERVER['QUERY_STRING'] : '')));
|
$_SERVER['REQUEST_URI'] = ( isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : $_SERVER['SCRIPT_NAME'] . (( isset($_SERVER['QUERY_STRING']) ? '?' . $_SERVER['QUERY_STRING'] : '')));
|
||||||
|
|
||||||
|
if ( !(phpversion() >= '4.1') )
|
||||||
|
die( 'Your server is running PHP version ' . phpversion() . ' but WordPress requires at least 4.1' );
|
||||||
|
|
||||||
|
|
||||||
// Change to E_ALL for development/debugging
|
// Change to E_ALL for development/debugging
|
||||||
error_reporting(E_ALL ^ E_NOTICE);
|
error_reporting(E_ALL ^ E_NOTICE);
|
||||||
|
|
||||||
|
@ -43,17 +47,15 @@ $tableoptiongroups = $wpdb->optiongroups;
|
||||||
$tableoptiongroup_options = $wpdb->optiongroup_options;
|
$tableoptiongroup_options = $wpdb->optiongroup_options;
|
||||||
$tablepostmeta = $wpdb->postmeta;
|
$tablepostmeta = $wpdb->postmeta;
|
||||||
|
|
||||||
if ( !(phpversion() >= '4.1') )
|
|
||||||
die( 'Your server is running PHP version ' . phpversion() . ' but WordPress requires at least 4.1' );
|
|
||||||
|
|
||||||
|
|
||||||
require (ABSPATH . WPINC . '/classes.php');
|
|
||||||
require (ABSPATH . WPINC . '/functions.php');
|
require (ABSPATH . WPINC . '/functions.php');
|
||||||
timer_start();
|
timer_start();
|
||||||
require (ABSPATH . WPINC . '/functions-formatting.php');
|
require (ABSPATH . WPINC . '/functions-formatting.php');
|
||||||
|
require (ABSPATH . WPINC . '/functions-user.php');
|
||||||
|
require (ABSPATH . WPINC . '/classes.php');
|
||||||
require (ABSPATH . WPINC . '/template-functions.php');
|
require (ABSPATH . WPINC . '/template-functions.php');
|
||||||
require (ABSPATH . WPINC . '/links.php');
|
require (ABSPATH . WPINC . '/links.php');
|
||||||
require (ABSPATH . WPINC . '/kses.php');
|
require (ABSPATH . WPINC . '/kses.php');
|
||||||
|
|
||||||
require_once (ABSPATH . WPINC . '/wp-l10n.php');
|
require_once (ABSPATH . WPINC . '/wp-l10n.php');
|
||||||
|
|
||||||
$wpdb->hide_errors();
|
$wpdb->hide_errors();
|
||||||
|
@ -83,7 +85,7 @@ if (get_settings('hack_file')) {
|
||||||
if ( get_settings('active_plugins') ) {
|
if ( get_settings('active_plugins') ) {
|
||||||
$current_plugins = get_settings('active_plugins');
|
$current_plugins = get_settings('active_plugins');
|
||||||
foreach ($current_plugins as $plugin) {
|
foreach ($current_plugins as $plugin) {
|
||||||
if (file_exists(ABSPATH . 'wp-content/plugins/' . $plugin))
|
if ('' != $plugin && file_exists(ABSPATH . 'wp-content/plugins/' . $plugin))
|
||||||
include(ABSPATH . 'wp-content/plugins/' . $plugin);
|
include(ABSPATH . 'wp-content/plugins/' . $plugin);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue