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
This commit is contained in:
parent
04b4729e6e
commit
efed9353fe
@ -1,7 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once(dirname(__FILE__) . '/upgrade-schema.php');
|
require_once(dirname(__FILE__) . '/upgrade-schema.php');
|
||||||
require_once(dirname(__FILE__) . '/admin-functions.php');
|
|
||||||
// Functions to be called in install and upgrade scripts
|
// Functions to be called in install and upgrade scripts
|
||||||
function upgrade_all() {
|
function upgrade_all() {
|
||||||
populate_options();
|
populate_options();
|
||||||
@ -528,6 +527,20 @@ function make_db_current_silent() {
|
|||||||
$alterations = dbDelta($wp_queries);
|
$alterations = dbDelta($wp_queries);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function get_home_path() {
|
||||||
|
$home = get_settings('home');
|
||||||
|
if ( $home != '' && $home != get_settings('siteurl') ) {
|
||||||
|
$home_path = parse_url($home);
|
||||||
|
$home_path = $home_root['path'];
|
||||||
|
$root = str_replace($_SERVER["PHP_SELF"], '', $_SERVER["SCRIPT_FILENAME"]);
|
||||||
|
$home_path = $root . $home_path . "/";
|
||||||
|
} else {
|
||||||
|
$home_path = ABSPATH;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $home_path;
|
||||||
|
}
|
||||||
|
|
||||||
function make_site_theme_from_oldschool($theme_name, $template) {
|
function make_site_theme_from_oldschool($theme_name, $template) {
|
||||||
$home_path = get_home_path();
|
$home_path = get_home_path();
|
||||||
$site_dir = ABSPATH . "wp-content/themes/$template";
|
$site_dir = ABSPATH . "wp-content/themes/$template";
|
||||||
|
@ -64,6 +64,8 @@ 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>.");
|
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();
|
$wpdb->show_errors();
|
||||||
|
|
||||||
|
require_once (ABSPATH . WPINC . '/wp-l10n.php');
|
||||||
|
|
||||||
require (ABSPATH . WPINC . '/functions-formatting.php');
|
require (ABSPATH . WPINC . '/functions-formatting.php');
|
||||||
require (ABSPATH . WPINC . '/functions-post.php');
|
require (ABSPATH . WPINC . '/functions-post.php');
|
||||||
require (ABSPATH . WPINC . '/classes.php');
|
require (ABSPATH . WPINC . '/classes.php');
|
||||||
@ -71,8 +73,6 @@ 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');
|
|
||||||
|
|
||||||
if (!strstr($_SERVER['PHP_SELF'], 'install.php') && !strstr($_SERVER['PHP_SELF'], 'wp-admin/import')) :
|
if (!strstr($_SERVER['PHP_SELF'], 'install.php') && !strstr($_SERVER['PHP_SELF'], 'wp-admin/import')) :
|
||||||
$querystring_start = '?';
|
$querystring_start = '?';
|
||||||
$querystring_equal = '=';
|
$querystring_equal = '=';
|
||||||
|
Loading…
Reference in New Issue
Block a user