From efed9353fe94da1c0d10bb2376313efde64d032f Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sat, 15 Jan 2005 00:09:25 +0000 Subject: [PATCH] Do not include admin-functions from ugrade-functions to avoid circular dependency. Move wp-l10n higher up in the wp-settings include chain. Bug 627. git-svn-id: https://develop.svn.wordpress.org/trunk@2095 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/upgrade-functions.php | 15 ++++++++++++++- wp-settings.php | 4 ++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/wp-admin/upgrade-functions.php b/wp-admin/upgrade-functions.php index 5c3b764159..d91de742a0 100644 --- a/wp-admin/upgrade-functions.php +++ b/wp-admin/upgrade-functions.php @@ -1,7 +1,6 @@ install.php."); $wpdb->show_errors(); +require_once (ABSPATH . WPINC . '/wp-l10n.php'); + require (ABSPATH . WPINC . '/functions-formatting.php'); require (ABSPATH . WPINC . '/functions-post.php'); require (ABSPATH . WPINC . '/classes.php'); @@ -71,8 +73,6 @@ require (ABSPATH . WPINC . '/template-functions.php'); require (ABSPATH . WPINC . '/links.php'); require (ABSPATH . WPINC . '/kses.php'); -require_once (ABSPATH . WPINC . '/wp-l10n.php'); - if (!strstr($_SERVER['PHP_SELF'], 'install.php') && !strstr($_SERVER['PHP_SELF'], 'wp-admin/import')) : $querystring_start = '?'; $querystring_equal = '=';