Skip to content

Commit

Permalink
Use relative paths when including files, avoiding include_path. fixes…
Browse files Browse the repository at this point in the history
… #12594, props sorich87.

git-svn-id: http://svn.automattic.com/wordpress/trunk@14139 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
nacin committed Apr 18, 2010
1 parent 0d0902e commit 6ec7cb4
Show file tree
Hide file tree
Showing 50 changed files with 139 additions and 139 deletions.
2 changes: 1 addition & 1 deletion wp-activate.php
Expand Up @@ -4,7 +4,7 @@
/** 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" );
Expand Down
2 changes: 1 addition & 1 deletion wp-admin/admin-ajax.php
Expand Up @@ -19,7 +19,7 @@
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();

Expand Down
2 changes: 1 addition & 1 deletion wp-admin/admin-header.php
Expand Up @@ -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 ) );
Expand Down
2 changes: 1 addition & 1 deletion wp-admin/async-upload.php
Expand Up @@ -21,7 +21,7 @@
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'));

Expand Down
12 changes: 6 additions & 6 deletions wp-admin/comment.php
Expand Up @@ -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';
Expand Down Expand Up @@ -36,7 +36,7 @@
*/
function comment_footer_die( $msg ) {
echo "<div class='wrap'><p>$msg</p></div>";
include('admin-footer.php');
include('./admin-footer.php');
die;
}

Expand All @@ -46,7 +46,7 @@ function comment_footer_die( $msg ) {
$title = __('Edit Comment');

wp_enqueue_script('comment');
require_once('admin-header.php');
require_once('./admin-header.php');

$comment_id = absint( $_GET['c'] );

Expand All @@ -61,7 +61,7 @@ function comment_footer_die( $msg ) {

$comment = get_comment_to_edit( $comment_id );

include('edit-form-comment.php');
include('./edit-form-comment.php');

break;

Expand All @@ -88,7 +88,7 @@ function comment_footer_die( $msg ) {
die();
}

require_once('admin-header.php');
require_once('./admin-header.php');

$formaction = $action . 'comment';
$nonce_action = 'approve' == $action ? 'approve-comment_' : 'delete-comment_';
Expand Down Expand Up @@ -276,6 +276,6 @@ function comment_footer_die( $msg ) {

} // end switch

include('admin-footer.php');
include('./admin-footer.php');

?>
6 changes: 3 additions & 3 deletions wp-admin/edit-comments.php
Expand Up @@ -7,7 +7,7 @@
*/

/** WordPress Administration Bootstrap */
require_once('admin.php');
require_once('./admin.php');

if ( !current_user_can('edit_posts') )
wp_die(__('Cheatin&#8217; uh?'));
Expand Down Expand Up @@ -105,7 +105,7 @@
else
$title = __('Edit Comments');

require_once('admin-header.php');
require_once('./admin-header.php');

$mode = ( empty($_GET['mode']) ) ? 'detail' : esc_attr($_GET['mode']);

Expand Down Expand Up @@ -468,4 +468,4 @@
<?php
wp_comment_reply('-1', true, 'detail');
wp_comment_trashnotice();
include('admin-footer.php'); ?>
include('./admin-footer.php'); ?>
4 changes: 2 additions & 2 deletions wp-admin/edit-form-advanced.php
Expand Up @@ -102,7 +102,7 @@
$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');

Expand Down Expand Up @@ -165,7 +165,7 @@

add_contextual_help($current_screen, drag_drop_help());

require_once('admin-header.php');
require_once('./admin-header.php');
?>

<div class="wrap">
Expand Down
4 changes: 2 additions & 2 deletions wp-admin/edit-link-categories.php
Expand Up @@ -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']) ) {
Expand Down Expand Up @@ -227,4 +227,4 @@
</div><!-- /wrap -->

<?php inline_edit_term_row('edit-link-categories', 'link_category'); ?>
<?php include('admin-footer.php'); ?>
<?php include('./admin-footer.php'); ?>
2 changes: 1 addition & 1 deletion wp-admin/edit-link-form.php
Expand Up @@ -22,7 +22,7 @@
$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');
Expand Down
6 changes: 3 additions & 3 deletions wp-admin/edit-tags.php
Expand Up @@ -7,7 +7,7 @@
*/

/** WordPress Administration Bootstrap */
require_once('admin.php');
require_once('./admin.php');

wp_reset_vars( array('action', 'tag', 'taxonomy', 'post_type') );

Expand Down Expand Up @@ -122,7 +122,7 @@
$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;

Expand Down Expand Up @@ -402,6 +402,6 @@
break;
}

include('admin-footer.php');
include('./admin-footer.php');

?>
8 changes: 4 additions & 4 deletions wp-admin/edit.php
Expand Up @@ -7,7 +7,7 @@
*/

/** WordPress Administration Bootstrap */
require_once('admin.php');
require_once('./admin.php');

if ( !isset($_GET['post_type']) )
$post_type = 'post';
Expand Down Expand Up @@ -156,7 +156,7 @@
else
$num_pages = $wp_query->max_num_pages;

require_once('admin-header.php');
require_once('./admin-header.php');

if ( empty($_GET['mode']) )
$mode = 'list';
Expand Down Expand Up @@ -375,7 +375,7 @@

<div class="clear"></div>

<?php include( 'edit-post-rows.php' ); ?>
<?php include( './edit-post-rows.php' ); ?>

<div class="tablenav">

Expand Down Expand Up @@ -425,4 +425,4 @@
</div>

<?php
include('admin-footer.php');
include('./admin-footer.php');
2 changes: 1 addition & 1 deletion wp-admin/export.php
Expand Up @@ -13,7 +13,7 @@
wp_die(__('You do not have sufficient permissions to export the content of this blog.'));

/** Load WordPress export API */
require_once('includes/export.php');
require_once('./includes/export.php');
$title = __('Export');

if ( isset( $_GET['download'] ) ) {
Expand Down
4 changes: 2 additions & 2 deletions wp-admin/index-extra.php
Expand Up @@ -7,10 +7,10 @@
*/

/** Load WordPress Bootstrap */
require_once( 'admin.php' );
require_once( './admin.php' );

/** Load WordPress Administration Dashboard API */
require( 'includes/dashboard.php' );
require( './includes/dashboard.php' );

@header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) );
send_nosniff_header();
Expand Down
4 changes: 2 additions & 2 deletions wp-admin/index.php
Expand Up @@ -7,7 +7,7 @@
*/

/** Load WordPress Bootstrap */
require_once('admin.php');
require_once('./admin.php');

/** Load WordPress dashboard API */
require_once(ABSPATH . 'wp-admin/includes/dashboard.php');
Expand All @@ -26,7 +26,7 @@

add_contextual_help($current_screen, '<p>' . __('The modules on this screen can be arranged in several columns. You can select the number of columns from the Screen Options tab.') . "</p>\n" . drag_drop_help() );

require_once('admin-header.php');
require_once('./admin-header.php');

$today = current_time('mysql', 1);
?>
Expand Down
6 changes: 3 additions & 3 deletions wp-admin/link-add.php
Expand Up @@ -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.'));
Expand All @@ -24,7 +24,7 @@
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');
?>
6 changes: 3 additions & 3 deletions wp-admin/link-category.php
Expand Up @@ -10,7 +10,7 @@
*/

/** Load WordPress Administration Bootstrap */
require_once('admin.php');
require_once('./admin.php');

wp_reset_vars(array('action', 'cat'));

Expand Down Expand Up @@ -67,8 +67,8 @@
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;

Expand Down
2 changes: 1 addition & 1 deletion wp-admin/link-manager.php
Expand Up @@ -278,4 +278,4 @@
</div>

<?php
include('admin-footer.php');
include('./admin-footer.php');
4 changes: 2 additions & 2 deletions wp-admin/media-new.php
Expand Up @@ -8,7 +8,7 @@

$_GET['inline'] = 'true';
/** Administration bootstrap */
require_once('admin.php');
require_once('media-upload.php');
require_once('./admin.php');
require_once('./media-upload.php');

?>
6 changes: 3 additions & 3 deletions wp-admin/media-upload.php
Expand Up @@ -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.'));
Expand Down Expand Up @@ -56,7 +56,7 @@

$title = __('Upload New Media');
$parent_file = 'upload.php';
require_once('admin-header.php'); ?>
require_once('./admin-header.php'); ?>
<div class="wrap">
<?php screen_icon(); ?>
<h2><?php echo esc_html( $title ); ?></h2>
Expand Down Expand Up @@ -86,7 +86,7 @@
</div>

<?php
include('admin-footer.php');
include('./admin-footer.php');

} else {

Expand Down
6 changes: 3 additions & 3 deletions wp-admin/media.php
Expand Up @@ -7,7 +7,7 @@
*/

/** Load WordPress Administration Bootstrap */
require_once('admin.php');
require_once('./admin.php');

$parent_file = 'upload.php';
$submenu_file = 'upload.php';
Expand Down Expand Up @@ -67,7 +67,7 @@
wp_enqueue_script('image-edit');
wp_enqueue_style('imgareaselect');

require( 'admin-header.php' );
require( './admin-header.php' );

$parent_file = 'upload.php';
$message = '';
Expand Down Expand Up @@ -114,7 +114,7 @@

<?php

require( 'admin-footer.php' );
require( './admin-footer.php' );

exit;

Expand Down
2 changes: 1 addition & 1 deletion wp-admin/ms-upgrade-network.php
Expand Up @@ -74,4 +74,4 @@ function nextpage() {
?>
</div>

<?php include('admin-footer.php'); ?>
<?php include('./admin-footer.php'); ?>
6 changes: 3 additions & 3 deletions wp-admin/nav-menus.php
Expand Up @@ -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' );
Expand Down Expand Up @@ -235,7 +235,7 @@
}

// Get the admin header
require_once( 'admin-header.php' );
require_once( './admin-header.php' );
?>
<div class="wrap">
<?php screen_icon(); ?>
Expand Down Expand Up @@ -345,4 +345,4 @@
<input type="hidden" id="edit-menu-item-id" name="edit-item-id" value="" />
</div><!-- /#menu-item-settings-->

<?php include( 'admin-footer.php' ); ?>
<?php include( './admin-footer.php' ); ?>

0 comments on commit 6ec7cb4

Please sign in to comment.