Get the title for pluggable top level admin pages.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2162 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
|
||||
require_once(dirname(__FILE__) . '/upgrade-schema.php');
|
||||
require_once(ABSPATH . '/wp-admin/admin-functions.php');
|
||||
require_once(ABSPATH . '/wp-admin/upgrade-schema.php');
|
||||
// Functions to be called in install and upgrade scripts
|
||||
function upgrade_all() {
|
||||
populate_options();
|
||||
@@ -8,6 +9,7 @@ function upgrade_all() {
|
||||
upgrade_101();
|
||||
upgrade_110();
|
||||
upgrade_130();
|
||||
save_mod_rewrite_rules();
|
||||
}
|
||||
|
||||
function upgrade_100() {
|
||||
@@ -527,20 +529,6 @@ function make_db_current_silent() {
|
||||
$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) {
|
||||
$home_path = get_home_path();
|
||||
$site_dir = ABSPATH . "wp-content/themes/$template";
|
||||
|
||||
Reference in New Issue
Block a user