mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
Don't include functions.php in wp_load_translations_early()
to avoid a parse error in a PHP4 environment (caused by use of the clone keyword in option.php). Manually include functions.php in the rare situations where it is not already included by the time we need to load translations early. Remove the functions.php dependency by switching the wp_die() calls to die(), in wp_check_php_mysql_versions(). props SergeyBiryukov, see #21316, for trunk. git-svn-id: https://develop.svn.wordpress.org/trunk@21715 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -44,12 +44,14 @@ define('WP_DEBUG', false);
|
||||
require(ABSPATH . WPINC . '/load.php');
|
||||
require(ABSPATH . WPINC . '/version.php');
|
||||
|
||||
// Also loads functions.php, plugin.php, l10n.php, pomo/mo.php (all required by setup-config.php)
|
||||
wp_load_translations_early();
|
||||
|
||||
// Check for the required PHP version and for the MySQL extension or a database drop-in.
|
||||
wp_check_php_mysql_versions();
|
||||
|
||||
require_once(ABSPATH . WPINC . '/functions.php');
|
||||
|
||||
// Also loads plugin.php, l10n.php, pomo/mo.php (all required by setup-config.php)
|
||||
wp_load_translations_early();
|
||||
|
||||
// Turn register_globals off.
|
||||
wp_unregister_GLOBALS();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user