diff --git a/wp-admin/options-media.php b/wp-admin/options-media.php
index 0b222c757e..645e22dd2d 100644
--- a/wp-admin/options-media.php
+++ b/wp-admin/options-media.php
@@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
-require_once('admin.php');
+require_once('./admin.php');
if ( ! current_user_can( 'manage_options' ) )
wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) );
@@ -15,7 +15,7 @@ if ( ! current_user_can( 'manage_options' ) )
$title = __('Media Settings');
$parent_file = 'options-general.php';
-include('admin-header.php');
+include('./admin-header.php');
?>
diff --git a/wp-admin/options-permalink.php b/wp-admin/options-permalink.php
index a423915a23..ad6822736d 100644
--- a/wp-admin/options-permalink.php
+++ b/wp-admin/options-permalink.php
@@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
-require_once('admin.php');
+require_once('./admin.php');
if ( ! current_user_can( 'manage_options' ) )
wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) );
@@ -70,7 +70,7 @@ window.onload = blurry;
}
add_filter('admin_head', 'add_js');
-include('admin-header.php');
+include('./admin-header.php');
$home_path = get_home_path();
$iis7_permalinks = iis7_supports_permalinks();
diff --git a/wp-admin/options-reading.php b/wp-admin/options-reading.php
index 287130acf9..915b2d286b 100644
--- a/wp-admin/options-reading.php
+++ b/wp-admin/options-reading.php
@@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
-require_once( 'admin.php' );
+require_once( './admin.php' );
if ( ! current_user_can( 'manage_options' ) )
wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) );
@@ -15,7 +15,7 @@ if ( ! current_user_can( 'manage_options' ) )
$title = __( 'Reading Settings' );
$parent_file = 'options-general.php';
-include( 'admin-header.php' );
+include( './admin-header.php' );
?>
diff --git a/wp-admin/options-writing.php b/wp-admin/options-writing.php
index dbcc1e59a2..a51c98bead 100644
--- a/wp-admin/options-writing.php
+++ b/wp-admin/options-writing.php
@@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
-require_once('admin.php');
+require_once('./admin.php');
if ( ! current_user_can( 'manage_options' ) )
wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) );
@@ -15,7 +15,7 @@ if ( ! current_user_can( 'manage_options' ) )
$title = __('Writing Settings');
$parent_file = 'options-general.php';
-include('admin-header.php');
+include('./admin-header.php');
?>
diff --git a/wp-admin/options.php b/wp-admin/options.php
index 3e4066a390..100972eebf 100644
--- a/wp-admin/options.php
+++ b/wp-admin/options.php
@@ -16,7 +16,7 @@
*/
/** WordPress Administration Bootstrap */
-require_once('admin.php');
+require_once('./admin.php');
$title = __('Settings');
$this_file = 'options.php';
@@ -161,7 +161,7 @@ if ( 'update' == $action ) {
exit;
}
-include('admin-header.php'); ?>
+include('./admin-header.php'); ?>
@@ -214,5 +214,5 @@ endforeach;
diff --git a/wp-admin/plugin-editor.php b/wp-admin/plugin-editor.php
index 084b599121..2aa879c48d 100644
--- a/wp-admin/plugin-editor.php
+++ b/wp-admin/plugin-editor.php
@@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
-require_once('admin.php');
+require_once('./admin.php');
if ( !current_user_can('edit_plugins') )
wp_die('
'.__('You do not have sufficient permissions to edit plugins for this blog.').'
');
@@ -102,7 +102,7 @@ default:
}
}
- require_once('admin-header.php');
+ require_once('./admin-header.php');
update_recently_edited(WP_PLUGIN_DIR . '/' . $file);
@@ -239,4 +239,4 @@ jQuery(document).ready(function($){
@@ -75,4 +75,4 @@ foreach ( (array)$tabs as $action => $text ) {
';
screen_icon();
@@ -121,7 +121,7 @@ if ( !empty($action) ) {
echo "
";
echo '
';
- require_once( 'admin-footer.php' );
+ require_once( './admin-footer.php' );
exit;
break;
case 'error_scrape':
@@ -206,7 +206,7 @@ if ( !empty($action) ) {
if ( ! isset($_REQUEST['verify-delete']) ) {
wp_enqueue_script('jquery');
- require_once('admin-header.php');
+ require_once('./admin-header.php');
?>
diff --git a/wp-admin/post.php b/wp-admin/post.php
index 1fe1cad484..624390c8ff 100644
--- a/wp-admin/post.php
+++ b/wp-admin/post.php
@@ -9,7 +9,7 @@
*/
/** WordPress Administration Bootstrap */
-require_once('admin.php');
+require_once('./admin.php');
$parent_file = 'edit.php';
$submenu_file = 'edit.php';
@@ -185,7 +185,7 @@ case 'edit':
enqueue_comment_hotkeys_js();
}
- include('edit-form-advanced.php');
+ include('./edit-form-advanced.php');
break;
@@ -274,5 +274,5 @@ default:
exit();
break;
} // end switch
-include('admin-footer.php');
+include('./admin-footer.php');
?>
diff --git a/wp-admin/press-this.php b/wp-admin/press-this.php
index 2e97699045..67e0ff9ee7 100644
--- a/wp-admin/press-this.php
+++ b/wp-admin/press-this.php
@@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
-require_once('admin.php');
+require_once('./admin.php');
header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
if ( ! current_user_can('edit_posts') )
diff --git a/wp-admin/profile.php b/wp-admin/profile.php
index 7c30cdfd25..97c19db43e 100644
--- a/wp-admin/profile.php
+++ b/wp-admin/profile.php
@@ -15,5 +15,5 @@
define('IS_PROFILE_PAGE', true);
/** Load User Editing Page */
-require_once('user-edit.php');
+require_once('./user-edit.php');
?>
diff --git a/wp-admin/revision.php b/wp-admin/revision.php
index 7ac404ae90..20dcfe8a2e 100644
--- a/wp-admin/revision.php
+++ b/wp-admin/revision.php
@@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
-require_once('admin.php');
+require_once('./admin.php');
wp_enqueue_script('list-revisions');
@@ -49,7 +49,7 @@ case 'diff' :
// If we're comparing a revision to itself, redirect to the 'view' page for that revision or the edit page for that post
if ( $left_revision->ID == $right_revision->ID ) {
$redirect = get_edit_post_link( $left_revision->ID );
- include( 'js/revisions-js.php' );
+ include( './js/revisions-js.php' );
break;
}
@@ -142,7 +142,7 @@ if ( !empty($post->post_type) && 'post' != $post->post_type )
else
$parent_file = $submenu_file = 'edit.php';
-require_once( 'admin-header.php' );
+require_once( './admin-header.php' );
?>
@@ -218,4 +218,4 @@ wp_list_post_revisions( $post, $args );
'.__('You do not have sufficient permissions to edit templates for this blog.').'');
@@ -79,7 +79,7 @@ break;
default:
- require_once('admin-header.php');
+ require_once('./admin-header.php');
update_recently_edited($file);
@@ -240,4 +240,4 @@ jQuery(document).ready(function($){
break;
}
-include("admin-footer.php");
+include("./admin-footer.php");
diff --git a/wp-admin/theme-install.php b/wp-admin/theme-install.php
index fcc17e5aad..a1443e8b39 100644
--- a/wp-admin/theme-install.php
+++ b/wp-admin/theme-install.php
@@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
-require_once('admin.php');
+require_once('./admin.php');
if ( ! current_user_can('install_themes') )
wp_die(__('You do not have sufficient permissions to install themes on this blog.'));
@@ -55,7 +55,7 @@ do_action('install_themes_pre_' . $tab); //Used to override the general interfac
add_contextual_help($current_screen, plugins_search_help());
-include('admin-header.php');
+include('./admin-header.php');
?>
@@ -76,4 +76,4 @@ foreach ( (array)$tabs as $action => $text ) {
Themes Admin page before they appear here.'); ?>
-
+
diff --git a/wp-admin/tools.php b/wp-admin/tools.php
index c62e505ed6..71d1f7f7d6 100644
--- a/wp-admin/tools.php
+++ b/wp-admin/tools.php
@@ -7,11 +7,11 @@
*/
/** WordPress Administration Bootstrap */
-require_once('admin.php');
+require_once('./admin.php');
$title = __('Tools');
-require_once('admin-header.php');
+require_once('./admin-header.php');
?>
@@ -45,5 +45,5 @@ do_action( 'tool_box' );
?>
diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php
index fbbc7ca212..71cedeb7bb 100644
--- a/wp-admin/update-core.php
+++ b/wp-admin/update-core.php
@@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
-require_once('admin.php');
+require_once('./admin.php');
if ( ! current_user_can('update_plugins') )
wp_die(__('You do not have sufficient permissions to update plugins for this blog.'));
@@ -376,7 +376,7 @@ $parent_file = 'tools.php';
if ( 'upgrade-core' == $action ) {
wp_version_check();
- require_once('admin-header.php');
+ require_once('./admin-header.php');
core_upgrade_preamble();
} elseif ( 'do-core-upgrade' == $action || 'do-core-reinstall' == $action ) {
check_admin_referer('upgrade-core');
@@ -388,7 +388,7 @@ if ( 'upgrade-core' == $action ) {
elseif ( isset( $_POST['undismiss'] ) )
do_undismiss_core_update();
- require_once('admin-header.php');
+ require_once('./admin-header.php');
if ( 'do-core-reinstall' == $action )
$reinstall = true;
else
@@ -414,7 +414,7 @@ if ( 'upgrade-core' == $action ) {
$title = __('Update Plugins');
- require_once('admin-header.php');
+ require_once('./admin-header.php');
echo '
';
screen_icon('plugins');
echo '
' . esc_html__('Update Plugins') . '
';
@@ -437,7 +437,7 @@ if ( 'upgrade-core' == $action ) {
$title = __('Update Themes');
- require_once('admin-header.php');
+ require_once('./admin-header.php');
echo '
';
screen_icon('themes');
echo '
' . esc_html__('Update Themes') . '
';
@@ -445,4 +445,4 @@ if ( 'upgrade-core' == $action ) {
echo '';
}
-include('admin-footer.php');
+include('./admin-footer.php');
diff --git a/wp-admin/update.php b/wp-admin/update.php
index 4f97d0029c..c246494950 100644
--- a/wp-admin/update.php
+++ b/wp-admin/update.php
@@ -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);
diff --git a/wp-admin/upload.php b/wp-admin/upload.php
index 1e1d0f2dc0..6b0be3f5ca 100644
--- a/wp-admin/upload.php
+++ b/wp-admin/upload.php
@@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
-require_once('admin.php');
+require_once('./admin.php');
wp_enqueue_script( 'wp-ajax-response' );
wp_enqueue_script( 'jquery-ui-draggable' );
@@ -161,7 +161,7 @@ if ( isset($_GET['detached']) ) {
$is_trash = ( isset($_GET['status']) && $_GET['status'] == 'trash' );
wp_enqueue_script('media');
-require_once('admin-header.php');
+require_once('./admin-header.php');
?>
@@ -448,7 +448,7 @@ if ( isset($_GET['detached']) ) { ?>
@@ -492,4 +492,4 @@ if ( $page_links )
diff --git a/wp-admin/user-new.php b/wp-admin/user-new.php
index 2ed4b80fc3..5539b8b736 100644
--- a/wp-admin/user-new.php
+++ b/wp-admin/user-new.php
@@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
-require_once('admin.php');
+require_once('./admin.php');
if ( !current_user_can('create_users') )
wp_die(__('Cheatin’ uh?'));
@@ -255,5 +255,5 @@ $new_user_send_password = !$_POST || isset($_POST['send_password']);
diff --git a/wp-admin/users.php b/wp-admin/users.php
index 1c491d03ac..ac4b2fc7de 100644
--- a/wp-admin/users.php
+++ b/wp-admin/users.php
@@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
-require_once('admin.php');
+require_once('./admin.php');
/** WordPress Registration API */
require_once( ABSPATH . WPINC . '/registration.php');
@@ -206,7 +206,7 @@ default:
exit;
}
- include('admin-header.php');
+ include('./admin-header.php');
$usersearch = isset($_GET['usersearch']) ? $_GET['usersearch'] : null;
$userspage = isset($_GET['userspage']) ? $_GET['userspage'] : null;
@@ -421,5 +421,5 @@ break;
} // end of the $doaction switch
-include('admin-footer.php');
+include('./admin-footer.php');
?>
diff --git a/wp-admin/widgets.php b/wp-admin/widgets.php
index c6ee6b17c0..6a1399ac2c 100644
--- a/wp-admin/widgets.php
+++ b/wp-admin/widgets.php
@@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
-require_once( 'admin.php' );
+require_once( './admin.php' );
/** WordPress Administration Widgets API */
require_once(ABSPATH . 'wp-admin/includes/widgets.php');
@@ -128,7 +128,7 @@ retrieve_widgets();
if ( count($wp_registered_sidebars) == 1 ) {
// If only "wp_inactive_widgets" is defined the theme has no sidebars, die.
- require_once( 'admin-header.php' );
+ require_once( './admin-header.php' );
?>
@@ -141,7 +141,7 @@ if ( count($wp_registered_sidebars) == 1 ) {
+ require_once( './admin-header.php' ); ?>
@@ -317,7 +317,7 @@ if ( isset($_GET['editwidget']) && $_GET['editwidget'] ) {
@@ -403,4 +403,4 @@ foreach ( $wp_registered_sidebars as $sidebar => $registered_sidebar ) {
get_html( $url, $args );
}
@@ -1350,7 +1350,7 @@ function wp_oembed_get( $url, $args = '' ) {
* @param boolean $regex Whether the $format parameter is in a regex format.
*/
function wp_oembed_add_provider( $format, $provider, $regex = false ) {
- require_once( 'class-oembed.php' );
+ require_once( './class-oembed.php' );
$oembed = _wp_oembed_get_object();
$oembed->providers[$format] = array( $provider, $regex );
}
diff --git a/wp-signup.php b/wp-signup.php
index a0d3a08a80..3093f4cfad 100644
--- a/wp-signup.php
+++ b/wp-signup.php
@@ -5,7 +5,7 @@ require( dirname(__FILE__) . '/wp-load.php' );
add_action( 'wp_head', 'signuppageheaders' ) ;
-require( 'wp-blog-header.php' );
+require( './wp-blog-header.php' );
require_once( ABSPATH . WPINC . '/registration.php' );
if ( is_array( get_site_option( 'illegal_names' )) && isset( $_GET[ 'new' ] ) && in_array( $_GET[ 'new' ], get_site_option( 'illegal_names' ) ) == true ) {