From 6ec7cb454099b12bb6f7d6089db823765fb58794 Mon Sep 17 00:00:00 2001 From: nacin Date: Sun, 18 Apr 2010 06:14:45 +0000 Subject: [PATCH] Use relative paths when including files, avoiding include_path. fixes #12594, props sorich87. git-svn-id: http://svn.automattic.com/wordpress/trunk@14139 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-activate.php | 2 +- wp-admin/admin-ajax.php | 2 +- wp-admin/admin-header.php | 2 +- wp-admin/async-upload.php | 2 +- wp-admin/comment.php | 12 ++++++------ wp-admin/edit-comments.php | 6 +++--- wp-admin/edit-form-advanced.php | 4 ++-- wp-admin/edit-link-categories.php | 4 ++-- wp-admin/edit-link-form.php | 2 +- wp-admin/edit-tags.php | 6 +++--- wp-admin/edit.php | 8 ++++---- wp-admin/export.php | 2 +- wp-admin/index-extra.php | 4 ++-- wp-admin/index.php | 4 ++-- wp-admin/link-add.php | 6 +++--- wp-admin/link-category.php | 6 +++--- wp-admin/link-manager.php | 2 +- wp-admin/media-new.php | 4 ++-- wp-admin/media-upload.php | 6 +++--- wp-admin/media.php | 6 +++--- wp-admin/ms-upgrade-network.php | 2 +- wp-admin/nav-menus.php | 6 +++--- wp-admin/options-discussion.php | 4 ++-- wp-admin/options-media.php | 4 ++-- wp-admin/options-permalink.php | 4 ++-- wp-admin/options-reading.php | 4 ++-- wp-admin/options-writing.php | 4 ++-- wp-admin/options.php | 6 +++--- wp-admin/plugin-editor.php | 6 +++--- wp-admin/plugin-install.php | 6 +++--- wp-admin/plugins.php | 14 +++++++------- wp-admin/post.php | 6 +++--- wp-admin/press-this.php | 2 +- wp-admin/profile.php | 2 +- wp-admin/revision.php | 8 ++++---- wp-admin/sidebar.php | 2 +- wp-admin/theme-editor.php | 6 +++--- wp-admin/theme-install.php | 6 +++--- wp-admin/themes.php | 6 +++--- wp-admin/tools.php | 6 +++--- wp-admin/update-core.php | 12 ++++++------ wp-admin/update.php | 26 +++++++++++++------------- wp-admin/upload.php | 8 ++++---- wp-admin/user-edit.php | 4 ++-- wp-admin/user-new.php | 4 ++-- wp-admin/users.php | 6 +++--- wp-admin/widgets.php | 14 +++++++------- wp-includes/compat.php | 4 ++-- wp-includes/media.php | 4 ++-- wp-signup.php | 2 +- 50 files changed, 139 insertions(+), 139 deletions(-) diff --git a/wp-activate.php b/wp-activate.php index 5225ec9ecc..3ba175daf4 100644 --- a/wp-activate.php +++ b/wp-activate.php @@ -4,7 +4,7 @@ define( "WP_INSTALLING", true ); /** Sets up the WordPress Environment. */ require( dirname(__FILE__) . '/wp-load.php' ); -require( 'wp-blog-header.php' ); +require( './wp-blog-header.php' ); if ( !is_multisite() ) { wp_redirect( get_option( 'siteurl' ) . "/wp-login.php?action=register" ); diff --git a/wp-admin/admin-ajax.php b/wp-admin/admin-ajax.php index 9418f6db61..c1554aa2a5 100644 --- a/wp-admin/admin-ajax.php +++ b/wp-admin/admin-ajax.php @@ -19,7 +19,7 @@ require_once('../wp-load.php'); if ( ! isset( $_REQUEST['action'] ) ) die('-1'); -require_once('includes/admin.php'); +require_once('./includes/admin.php'); @header('Content-Type: text/html; charset=' . get_option('blog_charset')); send_nosniff_header(); diff --git a/wp-admin/admin-header.php b/wp-admin/admin-header.php index 7337682b8a..23d9fb936d 100644 --- a/wp-admin/admin-header.php +++ b/wp-admin/admin-header.php @@ -7,7 +7,7 @@ */ @header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset')); -if (!isset($_GET["page"])) require_once('admin.php'); +if (!isset($_GET["page"])) require_once('./admin.php'); get_admin_page_title(); $title = esc_html( strip_tags( $title ) ); diff --git a/wp-admin/async-upload.php b/wp-admin/async-upload.php index a384453a28..8b9da96089 100644 --- a/wp-admin/async-upload.php +++ b/wp-admin/async-upload.php @@ -21,7 +21,7 @@ elseif ( empty($_COOKIE[AUTH_COOKIE]) && !empty($_REQUEST['auth_cookie']) ) if ( empty($_COOKIE[LOGGED_IN_COOKIE]) && !empty($_REQUEST['logged_in_cookie']) ) $_COOKIE[LOGGED_IN_COOKIE] = $_REQUEST['logged_in_cookie']; unset($current_user); -require_once('admin.php'); +require_once('./admin.php'); header('Content-Type: text/plain; charset=' . get_option('blog_charset')); diff --git a/wp-admin/comment.php b/wp-admin/comment.php index 38de0072d7..3c54321dc9 100644 --- a/wp-admin/comment.php +++ b/wp-admin/comment.php @@ -7,7 +7,7 @@ */ /** Load WordPress Bootstrap */ -require_once('admin.php'); +require_once('./admin.php'); $parent_file = 'edit-comments.php'; $submenu_file = 'edit-comments.php'; @@ -36,7 +36,7 @@ if ( isset( $_GET['dt'] ) ) { */ function comment_footer_die( $msg ) { echo "

$msg

"; - include('admin-footer.php'); + include('./admin-footer.php'); die; } @@ -46,7 +46,7 @@ case 'editcomment' : $title = __('Edit Comment'); wp_enqueue_script('comment'); - require_once('admin-header.php'); + require_once('./admin-header.php'); $comment_id = absint( $_GET['c'] ); @@ -61,7 +61,7 @@ case 'editcomment' : $comment = get_comment_to_edit( $comment_id ); - include('edit-form-comment.php'); + include('./edit-form-comment.php'); break; @@ -88,7 +88,7 @@ case 'spam' : die(); } - require_once('admin-header.php'); + require_once('./admin-header.php'); $formaction = $action . 'comment'; $nonce_action = 'approve' == $action ? 'approve-comment_' : 'delete-comment_'; @@ -276,6 +276,6 @@ default: } // end switch -include('admin-footer.php'); +include('./admin-footer.php'); ?> diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index c89af54eb0..b5335acb3d 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -7,7 +7,7 @@ */ /** WordPress Administration Bootstrap */ -require_once('admin.php'); +require_once('./admin.php'); if ( !current_user_can('edit_posts') ) wp_die(__('Cheatin’ uh?')); @@ -105,7 +105,7 @@ if ( $post_id ) else $title = __('Edit Comments'); -require_once('admin-header.php'); +require_once('./admin-header.php'); $mode = ( empty($_GET['mode']) ) ? 'detail' : esc_attr($_GET['mode']); @@ -468,4 +468,4 @@ if ( $page_links ) +include('./admin-footer.php'); ?> diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index a617ee4330..be6998cbfa 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -102,7 +102,7 @@ if ( $autosave && mysql2date( 'U', $autosave->post_modified_gmt, false ) > mysql $post_type_object = get_post_type_object($post_type); // All meta boxes should be defined and added before the first do_meta_boxes() call (or potentially during the do_meta_boxes action). -require_once('includes/meta-boxes.php'); +require_once('./includes/meta-boxes.php'); add_meta_box('submitdiv', __('Publish'), 'post_submit_meta_box', $post_type, 'side', 'core'); @@ -165,7 +165,7 @@ do_action('do_meta_boxes', $post_type, 'side', $post); add_contextual_help($current_screen, drag_drop_help()); -require_once('admin-header.php'); +require_once('./admin-header.php'); ?>
diff --git a/wp-admin/edit-link-categories.php b/wp-admin/edit-link-categories.php index 0a6b3711ad..31b2a184f8 100644 --- a/wp-admin/edit-link-categories.php +++ b/wp-admin/edit-link-categories.php @@ -7,7 +7,7 @@ */ /** WordPress Administration Bootstrap */ -require_once('admin.php'); +require_once('./admin.php'); // Handle bulk actions if ( isset($_GET['action']) && isset($_GET['delete']) ) { @@ -227,4 +227,4 @@ if ( $page_links )
- + diff --git a/wp-admin/edit-link-form.php b/wp-admin/edit-link-form.php index 1fbec58d0c..2e84d6652a 100644 --- a/wp-admin/edit-link-form.php +++ b/wp-admin/edit-link-form.php @@ -22,7 +22,7 @@ if ( ! empty($link_id) ) { $nonce_action = 'add-bookmark'; } -require_once('includes/meta-boxes.php'); +require_once('./includes/meta-boxes.php'); add_meta_box('linksubmitdiv', __('Save'), 'link_submit_meta_box', 'link', 'side', 'core'); add_meta_box('linkcategorydiv', __('Categories'), 'link_categories_meta_box', 'link', 'normal', 'core'); diff --git a/wp-admin/edit-tags.php b/wp-admin/edit-tags.php index 63030a68fe..8fee1ed4e5 100644 --- a/wp-admin/edit-tags.php +++ b/wp-admin/edit-tags.php @@ -7,7 +7,7 @@ */ /** WordPress Administration Bootstrap */ -require_once('admin.php'); +require_once('./admin.php'); wp_reset_vars( array('action', 'tag', 'taxonomy', 'post_type') ); @@ -122,7 +122,7 @@ case 'edit': $tag_ID = (int) $_GET['tag_ID']; $tag = get_term($tag_ID, $taxonomy, OBJECT, 'edit'); - include('edit-tag-form.php'); + include('./edit-tag-form.php'); break; @@ -402,6 +402,6 @@ do_action($taxonomy . '_add_form', $taxonomy); break; } -include('admin-footer.php'); +include('./admin-footer.php'); ?> \ No newline at end of file diff --git a/wp-admin/edit.php b/wp-admin/edit.php index 19d7c54518..8bdd8e0b63 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -7,7 +7,7 @@ */ /** WordPress Administration Bootstrap */ -require_once('admin.php'); +require_once('./admin.php'); if ( !isset($_GET['post_type']) ) $post_type = 'post'; @@ -156,7 +156,7 @@ if ( $post_type_object->hierarchical ) else $num_pages = $wp_query->max_num_pages; -require_once('admin-header.php'); +require_once('./admin-header.php'); if ( empty($_GET['mode']) ) $mode = 'list'; @@ -375,7 +375,7 @@ if ( $is_trash && current_user_can($post_type_object->edit_others_cap) ) { ?>
- +
@@ -425,4 +425,4 @@ else
' . __('The modules on this screen can be arranged in several columns. You can select the number of columns from the Screen Options tab.') . "

\n" . drag_drop_help() ); -require_once('admin-header.php'); +require_once('./admin-header.php'); $today = current_time('mysql', 1); ?> diff --git a/wp-admin/link-add.php b/wp-admin/link-add.php index e0e4489a7d..26b950d833 100644 --- a/wp-admin/link-add.php +++ b/wp-admin/link-add.php @@ -7,7 +7,7 @@ */ /** Load WordPress Administration Bootstrap */ -require_once('admin.php'); +require_once('./admin.php'); if ( ! current_user_can('manage_links') ) wp_die(__('You do not have sufficient permissions to add links to this blog.')); @@ -24,7 +24,7 @@ wp_enqueue_script('link'); wp_enqueue_script('xfn'); $link = get_default_link_to_edit(); -include('edit-link-form.php'); +include('./edit-link-form.php'); -require('admin-footer.php'); +require('./admin-footer.php'); ?> \ No newline at end of file diff --git a/wp-admin/link-category.php b/wp-admin/link-category.php index bcfbf2e878..caf73923e8 100644 --- a/wp-admin/link-category.php +++ b/wp-admin/link-category.php @@ -10,7 +10,7 @@ */ /** Load WordPress Administration Bootstrap */ -require_once('admin.php'); +require_once('./admin.php'); wp_reset_vars(array('action', 'cat')); @@ -67,8 +67,8 @@ case 'edit': require_once ('admin-header.php'); $cat_ID = (int) $_GET['cat_ID']; $category = get_term_to_edit($cat_ID, 'link_category'); - include('edit-link-category-form.php'); - include('admin-footer.php'); + include('./edit-link-category-form.php'); + include('./admin-footer.php'); exit; break; diff --git a/wp-admin/link-manager.php b/wp-admin/link-manager.php index 94b916e91c..b5f2677f12 100644 --- a/wp-admin/link-manager.php +++ b/wp-admin/link-manager.php @@ -278,4 +278,4 @@ echo $select_order; \ No newline at end of file diff --git a/wp-admin/media-upload.php b/wp-admin/media-upload.php index 0bb7455779..2fdf8d5201 100644 --- a/wp-admin/media-upload.php +++ b/wp-admin/media-upload.php @@ -10,7 +10,7 @@ */ /** Load WordPress Administration Bootstrap */ -require_once('admin.php'); +require_once('./admin.php'); if (!current_user_can('upload_files')) wp_die(__('You do not have permission to upload files.')); @@ -56,7 +56,7 @@ if ( isset($_GET['inline']) ) { $title = __('Upload New Media'); $parent_file = 'upload.php'; - require_once('admin-header.php'); ?> + require_once('./admin-header.php'); ?>

@@ -86,7 +86,7 @@ if ( isset($_GET['inline']) ) {
- + diff --git a/wp-admin/nav-menus.php b/wp-admin/nav-menus.php index f7b30afea4..c1630c4e56 100644 --- a/wp-admin/nav-menus.php +++ b/wp-admin/nav-menus.php @@ -10,7 +10,7 @@ */ /** Load WordPress Administration Bootstrap */ -require_once( 'admin.php' ); +require_once( './admin.php' ); // Load all the nav menu interface functions require_once( ABSPATH . 'wp-admin/includes/nav-menu.php' ); @@ -235,7 +235,7 @@ if ( !is_nav_menu( $nav_menu_selected_id ) ) { } // Get the admin header -require_once( 'admin-header.php' ); +require_once( './admin-header.php' ); ?>
@@ -345,4 +345,4 @@ require_once( 'admin-header.php' );
- \ No newline at end of file + \ No newline at end of file diff --git a/wp-admin/options-discussion.php b/wp-admin/options-discussion.php index 2f968f298b..8802f76317 100644 --- a/wp-admin/options-discussion.php +++ b/wp-admin/options-discussion.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 = __('Discussion Settings'); $parent_file = 'options-general.php'; -include('admin-header.php'); +include('./admin-header.php'); ?>
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'] ) {
+require_once( './admin-header.php' ); ?>
@@ -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 ) {