mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-07 09:49:04 +00:00
Use relative paths when including files, avoiding include_path. fixes #12594, props sorich87.
git-svn-id: https://develop.svn.wordpress.org/trunk@14139 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
/** WordPress Administration Bootstrap */
|
||||
require_once('admin.php');
|
||||
require_once('./admin.php');
|
||||
|
||||
include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
|
||||
|
||||
@@ -52,7 +52,7 @@ if ( isset($_GET['action']) ) {
|
||||
$title = __('Upgrade Plugin');
|
||||
$parent_file = 'plugins.php';
|
||||
$submenu_file = 'plugins.php';
|
||||
require_once('admin-header.php');
|
||||
require_once('./admin-header.php');
|
||||
|
||||
$nonce = 'upgrade-plugin_' . $plugin;
|
||||
$url = 'update.php?action=upgrade-plugin&plugin=' . $plugin;
|
||||
@@ -60,7 +60,7 @@ if ( isset($_GET['action']) ) {
|
||||
$upgrader = new Plugin_Upgrader( new Plugin_Upgrader_Skin( compact('title', 'nonce', 'url', 'plugin') ) );
|
||||
$upgrader->upgrade($plugin);
|
||||
|
||||
include('admin-footer.php');
|
||||
include('./admin-footer.php');
|
||||
|
||||
} elseif ('activate-plugin' == $action ) {
|
||||
if ( ! current_user_can('update_plugins') )
|
||||
@@ -105,7 +105,7 @@ if ( isset($_GET['action']) ) {
|
||||
$title = __('Plugin Install');
|
||||
$parent_file = 'plugins.php';
|
||||
$submenu_file = 'plugin-install.php';
|
||||
require_once('admin-header.php');
|
||||
require_once('./admin-header.php');
|
||||
|
||||
$title = sprintf( __('Installing Plugin: %s'), $api->name . ' ' . $api->version );
|
||||
$nonce = 'install-plugin_' . $plugin;
|
||||
@@ -115,7 +115,7 @@ if ( isset($_GET['action']) ) {
|
||||
$upgrader = new Plugin_Upgrader( new Plugin_Installer_Skin( compact('title', 'url', 'nonce', 'plugin', 'api') ) );
|
||||
$upgrader->install($api->download_link);
|
||||
|
||||
include('admin-footer.php');
|
||||
include('./admin-footer.php');
|
||||
|
||||
} elseif ( 'upload-plugin' == $action ) {
|
||||
|
||||
@@ -129,7 +129,7 @@ if ( isset($_GET['action']) ) {
|
||||
$title = __('Upload Plugin');
|
||||
$parent_file = 'plugins.php';
|
||||
$submenu_file = 'plugin-install.php';
|
||||
require_once('admin-header.php');
|
||||
require_once('./admin-header.php');
|
||||
|
||||
$title = sprintf( __('Installing Plugin from uploaded file: %s'), basename( $file_upload->filename ) );
|
||||
$nonce = 'plugin-upload';
|
||||
@@ -139,7 +139,7 @@ if ( isset($_GET['action']) ) {
|
||||
$upgrader = new Plugin_Upgrader( new Plugin_Installer_Skin( compact('type', 'title', 'nonce', 'url') ) );
|
||||
$upgrader->install( $file_upload->package );
|
||||
|
||||
include('admin-footer.php');
|
||||
include('./admin-footer.php');
|
||||
|
||||
} elseif ( 'upgrade-theme' == $action ) {
|
||||
|
||||
@@ -153,7 +153,7 @@ if ( isset($_GET['action']) ) {
|
||||
$title = __('Upgrade Theme');
|
||||
$parent_file = 'themes.php';
|
||||
$submenu_file = 'themes.php';
|
||||
require_once('admin-header.php');
|
||||
require_once('./admin-header.php');
|
||||
|
||||
$nonce = 'upgrade-theme_' . $theme;
|
||||
$url = 'update.php?action=upgrade-theme&theme=' . $theme;
|
||||
@@ -161,7 +161,7 @@ if ( isset($_GET['action']) ) {
|
||||
$upgrader = new Theme_Upgrader( new Theme_Upgrader_Skin( compact('title', 'nonce', 'url', 'theme') ) );
|
||||
$upgrader->upgrade($theme);
|
||||
|
||||
include('admin-footer.php');
|
||||
include('./admin-footer.php');
|
||||
} elseif ( 'update-selected-themes' == $action ) {
|
||||
if ( ! current_user_can( 'update_themes' ) )
|
||||
wp_die( __( 'You do not have sufficient permissions to update themes for this blog.' ) );
|
||||
@@ -206,7 +206,7 @@ if ( isset($_GET['action']) ) {
|
||||
$title = __('Install Themes');
|
||||
$parent_file = 'themes.php';
|
||||
$submenu_file = 'themes.php';
|
||||
require_once('admin-header.php');
|
||||
require_once('./admin-header.php');
|
||||
|
||||
$title = sprintf( __('Installing Theme: %s'), $api->name . ' ' . $api->version );
|
||||
$nonce = 'install-theme_' . $theme;
|
||||
@@ -216,7 +216,7 @@ if ( isset($_GET['action']) ) {
|
||||
$upgrader = new Theme_Upgrader( new Theme_Installer_Skin( compact('title', 'url', 'nonce', 'plugin', 'api') ) );
|
||||
$upgrader->install($api->download_link);
|
||||
|
||||
include('admin-footer.php');
|
||||
include('./admin-footer.php');
|
||||
|
||||
} elseif ( 'upload-theme' == $action ) {
|
||||
|
||||
@@ -232,7 +232,7 @@ if ( isset($_GET['action']) ) {
|
||||
$submenu_file = 'theme-install.php';
|
||||
add_thickbox();
|
||||
wp_enqueue_script('theme-preview');
|
||||
require_once('admin-header.php');
|
||||
require_once('./admin-header.php');
|
||||
|
||||
$title = sprintf( __('Installing Theme from uploaded file: %s'), basename( $file_upload->filename ) );
|
||||
$nonce = 'theme-upload';
|
||||
@@ -242,7 +242,7 @@ if ( isset($_GET['action']) ) {
|
||||
$upgrader = new Theme_Upgrader( new Theme_Installer_Skin( compact('type', 'title', 'nonce', 'url') ) );
|
||||
$upgrader->install( $file_upload->package );
|
||||
|
||||
include('admin-footer.php');
|
||||
include('./admin-footer.php');
|
||||
|
||||
} else {
|
||||
do_action('update-custom_' . $action);
|
||||
|
||||
Reference in New Issue
Block a user