Make WordPress Core

Changeset 25616


Ignore:
Timestamp:
09/25/2013 12:17:40 AM (11 years ago)
Author:
nacin
Message:

Don't rely on include_path to include files.

Always use dirname() or, once available, ABSPATH.

props ketwaroo, hakre.
fixes #17092.

Location:
trunk/src
Files:
105 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/index.php

    r25001 r25616  
    1515
    1616/** Loads the WordPress Environment and Template */
    17 require('./wp-blog-header.php');
     17require( dirname( __FILE__ ) . '/wp-blog-header.php' );
  • trunk/src/wp-activate.php

    r25537 r25616  
    1212require( dirname(__FILE__) . '/wp-load.php' );
    1313
    14 require( './wp-blog-header.php' );
     14require( dirname( __FILE__ ) . '/wp-blog-header.php' );
    1515
    1616if ( !is_multisite() ) {
  • trunk/src/wp-admin/about.php

    r24952 r25616  
    88
    99/** WordPress Administration Bootstrap */
    10 require_once( './admin.php' );
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212$title = __( 'About' );
  • trunk/src/wp-admin/admin-header.php

    r25499 r25616  
    99@header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
    1010if ( ! defined( 'WP_ADMIN' ) )
    11     require_once( './admin.php' );
     11    require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    1313// In case admin-header.php is included in a function.
  • trunk/src/wp-admin/admin-post.php

    r25589 r25616  
    1515    require_once(ABSPATH . 'wp-load.php');
    1616else
    17     require_once('../wp-load.php');
     17    require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
    1818
    1919/** Allow for cross-domain requests (from the frontend). */
  • trunk/src/wp-admin/async-upload.php

    r24593 r25616  
    1212    require_once(ABSPATH . 'wp-load.php');
    1313else
    14     require_once('../wp-load.php');
     14    require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
    1515
    1616if ( ! ( isset( $_REQUEST['action'] ) && 'upload-attachment' == $_REQUEST['action'] ) ) {
     
    2525}
    2626
    27 require_once('./admin.php');
     27require_once( ABSPATH . 'wp-admin/admin.php' );
    2828
    2929if ( !current_user_can('upload_files') )
  • trunk/src/wp-admin/comment.php

    r25282 r25616  
    88
    99/** Load WordPress Bootstrap */
    10 require_once('./admin.php');
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212$parent_file = 'edit-comments.php';
     
    3737function comment_footer_die( $msg ) {
    3838    echo "<div class='wrap'><p>$msg</p></div>";
    39     include('./admin-footer.php');
     39    include( ABSPATH . 'wp-admin/admin-footer.php' );
    4040    die;
    4141}
     
    6161
    6262    wp_enqueue_script('comment');
    63     require_once('./admin-header.php');
     63    require_once( ABSPATH . 'wp-admin/admin-header.php' );
    6464
    6565    $comment_id = absint( $_GET['c'] );
     
    7676    $comment = get_comment_to_edit( $comment_id );
    7777
    78     include('./edit-form-comment.php');
     78    include( ABSPATH . 'wp-admin/edit-form-comment.php' );
    7979
    8080    break;
     
    105105    }
    106106
    107     require_once('./admin-header.php');
     107    require_once( ABSPATH . 'wp-admin/admin-header.php' );
    108108
    109109    $formaction    = $action . 'comment';
     
    301301} // end switch
    302302
    303 include('./admin-footer.php');
     303include( ABSPATH . 'wp-admin/admin-footer.php' );
  • trunk/src/wp-admin/credits.php

    r25491 r25616  
    88
    99/** WordPress Administration Bootstrap */
    10 require_once( './admin.php' );
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212$title = __( 'Credits' );
  • trunk/src/wp-admin/customize.php

    r24734 r25616  
    1010define( 'IFRAME_REQUEST', true );
    1111
    12 require_once( './admin.php' );
     12require_once( dirname( __FILE__ ) . '/admin.php' );
    1313if ( ! current_user_can( 'edit_theme_options' ) )
    1414    wp_die( __( 'Cheatin&#8217; uh?' ) );
  • trunk/src/wp-admin/edit-comments.php

    r25439 r25616  
    88
    99/** WordPress Administration Bootstrap */
    10 require_once('./admin.php');
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111if ( !current_user_can('edit_posts') )
    1212    wp_die(__('Cheatin&#8217; uh?'));
     
    137137);
    138138
    139 require_once('./admin-header.php');
     139require_once( ABSPATH . 'wp-admin/admin-header.php' );
    140140?>
    141141
     
    253253wp_comment_reply('-1', true, 'detail');
    254254wp_comment_trashnotice();
    255 include('./admin-footer.php'); ?>
     255include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
  • trunk/src/wp-admin/edit-form-advanced.php

    r25572 r25616  
    108108
    109109// All meta boxes should be defined and added before the first do_meta_boxes() call (or potentially during the do_meta_boxes action).
    110 require_once('./includes/meta-boxes.php');
     110require_once( ABSPATH . 'wp-admin/includes/meta-boxes.php' );
    111111
    112112
     
    310310}
    311311
    312 require_once('./admin-header.php');
     312require_once( ABSPATH . 'wp-admin/admin-header.php' );
    313313?>
    314314
  • trunk/src/wp-admin/edit-link-form.php

    r23925 r25616  
    2323}
    2424
    25 require_once('./includes/meta-boxes.php');
     25require_once( ABSPATH . 'wp-admin/includes/meta-boxes.php' );
    2626
    2727add_meta_box('linksubmitdiv', __('Save'), 'link_submit_meta_box', null, 'side', 'core');
     
    5555);
    5656
    57 require_once ('admin-header.php');
     57require_once( ABSPATH . 'wp-admin/admin-header.php' );
    5858?>
    5959
  • trunk/src/wp-admin/edit-tags.php

    r25158 r25616  
    88
    99/** WordPress Administration Bootstrap */
    10 require_once('./admin.php');
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212if ( ! $taxnow )
     
    127127    if ( ! $tag )
    128128        wp_die( __( 'You attempted to edit an item that doesn&#8217;t exist. Perhaps it was deleted?' ) );
    129     require_once ( 'admin-header.php' );
    130     include( './edit-tag-form.php' );
     129    require_once( ABSPATH . 'wp-admin/admin-header.php' );
     130    include( ABSPATH . 'wp-admin/edit-tag-form.php' );
    131131
    132132break;
     
    248248}
    249249
    250 require_once ('admin-header.php');
     250require_once( ABSPATH . 'wp-admin/admin-header.php' );
    251251
    252252if ( !current_user_can($tax->cap->edit_terms) )
     
    463463}
    464464
    465 include('./admin-footer.php');
     465include( ABSPATH . 'wp-admin/admin-footer.php' );
  • trunk/src/wp-admin/edit.php

    r25577 r25616  
    88
    99/** WordPress Administration Bootstrap */
    10 require_once( './admin.php' );
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212if ( ! $typenow )
     
    263263$bulk_counts = array_filter( $bulk_counts );
    264264
    265 require_once('./admin-header.php');
     265require_once( ABSPATH . 'wp-admin/admin-header.php' );
    266266?>
    267267<div class="wrap">
     
    323323
    324324<?php
    325 include('./admin-footer.php');
     325include( ABSPATH . 'wp-admin/admin-footer.php' );
  • trunk/src/wp-admin/export.php

    r25490 r25616  
    88
    99/** Load WordPress Bootstrap */
    10 require_once ('admin.php');
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212if ( !current_user_can('export') )
     
    1414
    1515/** Load WordPress export API */
    16 require_once('./includes/export.php');
     16require_once( ABSPATH . 'wp-admin/includes/export.php' );
    1717$title = __('Export');
    1818
     
    108108}
    109109
    110 require_once ('admin-header.php');
     110require_once( ABSPATH . 'wp-admin/admin-header.php' );
    111111
    112112/**
     
    242242</div>
    243243
    244 <?php include('admin-footer.php'); ?>
     244<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
  • trunk/src/wp-admin/freedoms.php

    r24913 r25616  
    88
    99/** WordPress Administration Bootstrap */
    10 require_once( './admin.php' );
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212$title = __( 'Freedoms' );
  • trunk/src/wp-admin/import.php

    r22632 r25616  
    1010
    1111/** Load WordPress Bootstrap */
    12 require_once ('admin.php');
     12require_once( dirname( __FILE__ ) . '/admin.php' );
    1313
    1414if ( !current_user_can('import') )
     
    4848wp_enqueue_script( 'plugin-install' );
    4949
    50 require_once ('admin-header.php');
     50require_once( ABSPATH . 'wp-admin/admin-header.php' );
    5151$parent_file = 'tools.php';
    5252?>
     
    131131<?php
    132132
    133 include ('admin-footer.php');
     133include( ABSPATH . 'wp-admin/admin-footer.php' );
  • trunk/src/wp-admin/index.php

    r25273 r25616  
    88
    99/** Load WordPress Bootstrap */
    10 require_once('./admin.php');
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212/** Load WordPress dashboard API */
  • trunk/src/wp-admin/install.php

    r25115 r25616  
    3737
    3838/** Load WordPress Administration Upgrade API */
    39 require_once( dirname( __FILE__ ) . '/includes/upgrade.php' );
     39require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
    4040
    4141/** Load wpdb */
    42 require_once(dirname(dirname(__FILE__)) . '/wp-includes/wp-db.php');
     42require_once( ABSPATH . 'wp-includes/wp-db.php' );
    4343
    4444$step = isset( $_GET['step'] ) ? (int) $_GET['step'] : 0;
  • trunk/src/wp-admin/link-add.php

    r23445 r25616  
    88
    99/** Load WordPress Administration Bootstrap */
    10 require_once('./admin.php');
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212if ( ! current_user_can('manage_links') )
     
    2525
    2626$link = get_default_link_to_edit();
    27 include('./edit-link-form.php');
     27include( ABSPATH . 'wp-admin/edit-link-form.php' );
    2828
    29 require('./admin-footer.php');
     29require( ABSPATH . 'wp-admin/admin-footer.php' );
  • trunk/src/wp-admin/link-manager.php

    r23567 r25616  
    88
    99/** Load WordPress Administration Bootstrap */
    10 require_once ('admin.php');
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111if ( ! current_user_can( 'manage_links' ) )
    1212    wp_die( __( 'You do not have sufficient permissions to edit the links for this site.' ) );
     
    6262);
    6363
    64 include_once ('./admin-header.php');
     64include_once( ABSPATH . 'wp-admin/admin-header.php' );
    6565
    6666if ( ! current_user_can('manage_links') )
     
    9898
    9999<?php
    100 include('./admin-footer.php');
     100include( ABSPATH . 'wp-admin/admin-footer.php' );
  • trunk/src/wp-admin/link.php

    r23445 r25616  
    1111
    1212/** Load WordPress Administration Bootstrap */
    13 require_once ('admin.php');
     13require_once( dirname( __FILE__ ) . '/admin.php' );
    1414
    1515wp_reset_vars( array( 'action', 'cat_id', 'link_id' ) );
     
    112112            wp_die(__('Link not found.'));
    113113
    114         include ('edit-link-form.php');
    115         include ('admin-footer.php');
     114        include( ABSPATH . 'wp-admin/edit-link-form.php' );
     115        include( ABSPATH . 'wp-admin/admin-footer.php' );
    116116        break;
    117117
  • trunk/src/wp-admin/maint/repair.php

    r23413 r25616  
    88define('WP_REPAIRING', true);
    99
    10 require_once('../../wp-load.php');
     10require_once( dirname( dirname( dirname( __FILE__ ) ) ) . '/wp-load.php' );
    1111
    1212header( 'Content-Type: text/html; charset=utf-8' );
  • trunk/src/wp-admin/media-new.php

    r23739 r25616  
    1111
    1212/** Load WordPress Administration Bootstrap */
    13 require_once('./admin.php');
     13require_once( dirname( __FILE__ ) . '/admin.php' );
    1414
    1515if (!current_user_can('upload_files'))
  • trunk/src/wp-admin/media-upload.php

    r22751 r25616  
    1414
    1515/** Load WordPress Administration Bootstrap */
    16 require_once('./admin.php');
     16require_once( dirname( __FILE__ ) . '/admin.php' );
    1717
    1818if (!current_user_can('upload_files'))
  • trunk/src/wp-admin/media.php

    r23554 r25616  
    88
    99/** Load WordPress Administration Bootstrap */
    10 require_once('./admin.php');
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212$parent_file = 'upload.php';
     
    8585    );
    8686
    87     require( './admin-header.php' );
     87    require( ABSPATH . 'wp-admin/admin-header.php' );
    8888
    8989    $parent_file = 'upload.php';
     
    137137<?php
    138138
    139     require( './admin-footer.php' );
     139    require( ABSPATH . 'wp-admin/admin-footer.php' );
    140140
    141141    exit;
  • trunk/src/wp-admin/moderation.php

    r19712 r25616  
    88 * @subpackage Administration
    99 */
    10 require_once('../wp-load.php');
     10require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
    1111wp_redirect( admin_url('edit-comments.php?comment_status=moderated') );
    1212exit;
  • trunk/src/wp-admin/ms-admin.php

    r19712 r25616  
    88 */
    99
    10 require_once( './admin.php' );
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212wp_redirect( network_admin_url() );
  • trunk/src/wp-admin/ms-delete-site.php

    r25424 r25616  
    88 */
    99
    10 require_once( './admin.php' );
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212if ( !is_multisite() )
     
    3030$title = __( 'Delete Site' );
    3131$parent_file = 'tools.php';
    32 require_once( './admin-header.php' );
     32require_once( ABSPATH . 'wp-admin/admin-header.php' );
    3333
    3434echo '<div class="wrap">';
     
    9090echo '</div>';
    9191
    92 include( './admin-footer.php' );
     92include( ABSPATH . 'wp-admin/admin-footer.php' );
  • trunk/src/wp-admin/ms-edit.php

    r19712 r25616  
    88 */
    99
    10 require_once( './admin.php' );
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212wp_redirect( network_admin_url() );
  • trunk/src/wp-admin/ms-options.php

    r15481 r25616  
    88 */
    99
    10 require_once( './admin.php' );
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212wp_redirect( network_admin_url('settings.php') );
  • trunk/src/wp-admin/ms-sites.php

    r19712 r25616  
    88 */
    99
    10 require_once( './admin.php' );
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212wp_redirect( network_admin_url('sites.php') );
  • trunk/src/wp-admin/ms-themes.php

    r19712 r25616  
    88 */
    99
    10 require_once( './admin.php' );
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212wp_redirect( network_admin_url('themes.php') );
  • trunk/src/wp-admin/ms-upgrade-network.php

    r19712 r25616  
    88 */
    99
    10 require_once('admin.php');
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212wp_redirect( network_admin_url('upgrade.php') );
  • trunk/src/wp-admin/ms-users.php

    r19712 r25616  
    88 */
    99
    10 require_once( './admin.php' );
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212wp_redirect( network_admin_url('users.php') );
  • trunk/src/wp-admin/my-sites.php

    r19712 r25616  
    88 */
    99
    10 require_once( './admin.php' );
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212if ( !is_multisite() )
     
    5050);
    5151
    52 require_once( './admin-header.php' );
     52require_once( ABSPATH . 'wp-admin/admin-header.php' );
    5353
    5454if ( $updated ) { ?>
     
    118118    </div>
    119119<?php
    120 include( './admin-footer.php' );
     120include( ABSPATH . 'wp-admin/admin-footer.php' );
  • trunk/src/wp-admin/nav-menus.php

    r25218 r25616  
    1111
    1212/** Load WordPress Administration Bootstrap */
    13 require_once( './admin.php' );
     13require_once( dirname( __FILE__ ) . '/admin.php' );
    1414
    1515// Load all the nav menu interface functions
     
    531531
    532532// Get the admin header
    533 require_once( './admin-header.php' );
     533require_once( ABSPATH . 'wp-admin/admin-header.php' );
    534534?>
    535535<div class="wrap">
     
    763763    <?php endif; ?>
    764764</div><!-- /.wrap-->
    765 <?php include( './admin-footer.php' ); ?>
     765<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
  • trunk/src/wp-admin/network.php

    r24648 r25616  
    1414
    1515/** WordPress Administration Bootstrap */
    16 require_once( './admin.php' );
     16require_once( dirname( __FILE__ ) . '/admin.php' );
    1717
    1818if ( ! is_super_admin() )
  • trunk/src/wp-admin/network/about.php

    r22798 r25616  
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( './admin.php' );
     11require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    1313if ( ! is_multisite() )
    1414    wp_die( __( 'Multisite support is not enabled.' ) );
    1515
    16 require( '../about.php' );
     16require( ABSPATH . 'wp-admin/about.php' );
  • trunk/src/wp-admin/network/credits.php

    r22798 r25616  
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( './admin.php' );
     11require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    1313if ( ! is_multisite() )
    1414    wp_die( __( 'Multisite support is not enabled.' ) );
    1515
    16 require( '../credits.php' );
     16require( ABSPATH . 'wp-admin/credits.php' );
  • trunk/src/wp-admin/network/edit.php

    r19712 r25616  
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( './admin.php' );
     11require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    1313if ( ! is_multisite() )
  • trunk/src/wp-admin/network/freedoms.php

    r22798 r25616  
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( './admin.php' );
     11require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    1313if ( ! is_multisite() )
    1414    wp_die( __( 'Multisite support is not enabled.' ) );
    1515
    16 require( '../freedoms.php' );
     16require( ABSPATH . 'wp-admin/freedoms.php' );
  • trunk/src/wp-admin/network/index.php

    r25457 r25616  
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( './admin.php' );
     11require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    1313/** Load WordPress dashboard API */
     
    6363add_screen_option('layout_columns', array('max' => 4, 'default' => 2) );
    6464
    65 require_once( '../admin-header.php' );
     65require_once( ABSPATH . 'wp-admin/admin-header.php' );
    6666
    6767?>
     
    8080</div><!-- wrap -->
    8181
    82 <?php include( '../admin-footer.php' ); ?>
     82<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
  • trunk/src/wp-admin/network/plugin-editor.php

    r16272 r25616  
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( './admin.php' );
     11require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    1313if ( ! is_multisite() )
    1414    wp_die( __( 'Multisite support is not enabled.' ) );
    1515
    16 require( '../plugin-editor.php' );
     16require( ABSPATH . 'wp-admin/plugin-editor.php' );
  • trunk/src/wp-admin/network/plugin-install.php

    r16658 r25616  
    1212
    1313/** Load WordPress Administration Bootstrap */
    14 require_once( './admin.php' );
     14require_once( dirname( __FILE__ ) . '/admin.php' );
    1515
    1616if ( ! is_multisite() )
    1717    wp_die( __( 'Multisite support is not enabled.' ) );
    1818
    19 require( '../plugin-install.php' );
     19require( ABSPATH . 'wp-admin/plugin-install.php' );
  • trunk/src/wp-admin/network/plugins.php

    r16272 r25616  
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( './admin.php' );
     11require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    1313if ( ! is_multisite() )
    1414    wp_die( __( 'Multisite support is not enabled.' ) );
    1515
    16 require( '../plugins.php' );
     16require( ABSPATH . 'wp-admin/plugins.php' );
  • trunk/src/wp-admin/network/profile.php

    r16272 r25616  
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( './admin.php' );
     11require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    1313if ( ! is_multisite() )
    1414    wp_die( __( 'Multisite support is not enabled.' ) );
    1515
    16 require( '../profile.php' );
     16require( ABSPATH . 'wp-admin/profile.php' );
  • trunk/src/wp-admin/network/settings.php

    r24993 r25616  
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( './admin.php' );
     11require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    1313if ( ! is_multisite() )
     
    7272}
    7373
    74 include( '../admin-header.php' );
     74include( ABSPATH . 'wp-admin/admin-header.php' );
    7575
    7676if ( isset( $_GET['updated'] ) ) {
     
    301301</div>
    302302
    303 <?php include( '../admin-footer.php' ); ?>
     303<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
  • trunk/src/wp-admin/network/setup.php

    r17340 r25616  
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( './admin.php' );
     11require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    1313if ( ! is_multisite() )
    1414    wp_die( __( 'Multisite support is not enabled.' ) );
    1515
    16 require( '../network.php' );
     16require( ABSPATH . 'wp-admin/network.php' );
  • trunk/src/wp-admin/network/site-info.php

    r25261 r25616  
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( './admin.php' );
     11require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    1313if ( ! is_multisite() )
     
    9292$submenu_file = 'sites.php';
    9393
    94 require('../admin-header.php');
     94require( ABSPATH . 'wp-admin/admin-header.php' );
    9595
    9696?>
     
    178178</div>
    179179<?php
    180 require('../admin-footer.php');
     180require( ABSPATH . 'wp-admin/admin-footer.php' );
  • trunk/src/wp-admin/network/site-new.php

    r23567 r25616  
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( './admin.php' );
     11require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    1313if ( ! is_multisite() )
     
    108108$parent_file = 'sites.php';
    109109
    110 require('../admin-header.php');
     110require( ABSPATH . 'wp-admin/admin-header.php' );
    111111
    112112?>
     
    151151</div>
    152152<?php
    153 require('../admin-footer.php');
     153require( ABSPATH . 'wp-admin/admin-footer.php' );
  • trunk/src/wp-admin/network/site-settings.php

    r24120 r25616  
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( './admin.php' );
     11require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    1313if ( ! is_multisite() )
     
    7878$submenu_file = 'sites.php';
    7979
    80 require('../admin-header.php');
     80require( ABSPATH . 'wp-admin/admin-header.php' );
    8181
    8282?>
     
    153153</div>
    154154<?php
    155 require('../admin-footer.php');
     155require( ABSPATH . 'wp-admin/admin-footer.php' );
  • trunk/src/wp-admin/network/site-themes.php

    r21903 r25616  
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( './admin.php' );
     11require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    1313if ( ! is_multisite() )
     
    133133$submenu_file = 'sites.php';
    134134
    135 require('../admin-header.php'); ?>
     135require( ABSPATH . 'wp-admin/admin-header.php' ); ?>
    136136
    137137<div class="wrap">
  • trunk/src/wp-admin/network/site-users.php

    r24509 r25616  
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( './admin.php' );
     11require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    1313if ( ! is_multisite() )
     
    168168    wp_enqueue_script( 'user-suggest' );
    169169
    170 require('../admin-header.php'); ?>
     170require( ABSPATH . 'wp-admin/admin-header.php' ); ?>
    171171
    172172<script type='text/javascript'>
     
    308308</div>
    309309<?php
    310 require('../admin-footer.php');
     310require( ABSPATH . 'wp-admin/admin-footer.php' );
  • trunk/src/wp-admin/network/sites.php

    r23567 r25616  
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( './admin.php' );
     11require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    1313if ( ! is_multisite() )
     
    226226$wp_list_table->prepare_items();
    227227
    228 require_once( '../admin-header.php' );
     228require_once( ABSPATH . 'wp-admin/admin-header.php' );
    229229?>
    230230
     
    255255<?php
    256256
    257 require_once( '../admin-footer.php' ); ?>
     257require_once( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
  • trunk/src/wp-admin/network/theme-editor.php

    r16272 r25616  
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( './admin.php' );
     11require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    1313if ( ! is_multisite() )
    1414    wp_die( __( 'Multisite support is not enabled.' ) );
    1515
    16 require( '../theme-editor.php' );
     16require( ABSPATH . 'wp-admin/theme-editor.php' );
  • trunk/src/wp-admin/network/theme-install.php

    r17340 r25616  
    1212
    1313/** Load WordPress Administration Bootstrap */
    14 require_once( './admin.php' );
     14require_once( dirname( __FILE__ ) . '/admin.php' );
    1515
    1616if ( ! is_multisite() )
    1717    wp_die( __( 'Multisite support is not enabled.' ) );
    1818
    19 require( '../theme-install.php' );
     19require( ABSPATH . 'wp-admin/theme-install.php' );
  • trunk/src/wp-admin/network/themes.php

    r24558 r25616  
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( './admin.php' );
     11require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    1313if ( ! is_multisite() )
  • trunk/src/wp-admin/network/update-core.php

    r16272 r25616  
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( './admin.php' );
     11require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    1313if ( ! is_multisite() )
    1414    wp_die( __( 'Multisite support is not enabled.' ) );
    1515
    16 require( '../update-core.php' );
     16require( ABSPATH . 'wp-admin/update-core.php' );
  • trunk/src/wp-admin/network/update.php

    r16860 r25616  
    1212
    1313/** Load WordPress Administration Bootstrap */
    14 require_once( './admin.php' );
     14require_once( dirname( __FILE__ ) . '/admin.php' );
    1515
    1616if ( ! is_multisite() )
    1717    wp_die( __( 'Multisite support is not enabled.' ) );
    1818
    19 require( '../update.php' );
     19require( ABSPATH . 'wp-admin/update.php' );
  • trunk/src/wp-admin/network/upgrade.php

    r25237 r25616  
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( './admin.php' );
     11require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    1313if ( ! is_multisite() )
     
    3434);
    3535
    36 require_once('../admin-header.php');
     36require_once( ABSPATH . 'wp-admin/admin-header.php' );
    3737
    3838if ( ! current_user_can( 'manage_network' ) )
     
    100100</div>
    101101
    102 <?php include('../admin-footer.php'); ?>
     102<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
  • trunk/src/wp-admin/network/user-edit.php

    r16272 r25616  
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( './admin.php' );
     11require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    1313if ( ! is_multisite() )
    1414    wp_die( __( 'Multisite support is not enabled.' ) );
    1515
    16 require( '../user-edit.php' );
     16require( ABSPATH . 'wp-admin/user-edit.php' );
  • trunk/src/wp-admin/network/user-new.php

    r24383 r25616  
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( './admin.php' );
     11require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    1313if ( ! is_multisite() )
     
    6767$parent_file = 'users.php';
    6868
    69 require('../admin-header.php'); ?>
     69require( ABSPATH . 'wp-admin/admin-header.php' ); ?>
    7070
    7171<div class="wrap">
     
    105105</div>
    106106<?php
    107 require('../admin-footer.php');
     107require( ABSPATH . 'wp-admin/admin-footer.php' );
  • trunk/src/wp-admin/network/users.php

    r21501 r25616  
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( './admin.php' );
     11require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    1313if ( ! is_multisite() )
     
    102102                $title = __( 'Users' );
    103103                $parent_file = 'users.php';
    104                 require_once( '../admin-header.php' );
     104                require_once( ABSPATH . 'wp-admin/admin-header.php' );
    105105                echo '<div class="wrap">';
    106106                confirm_delete_users( $_POST['allusers'] );
    107107                echo '</div>';
    108                 require_once( '../admin-footer.php' );
     108                require_once( ABSPATH . 'wp-admin/admin-footer.php' );
    109109            } else {
    110110                wp_redirect( network_admin_url( 'users.php' ) );
     
    131131                                $title = __( 'Users' );
    132132                                $parent_file = 'users.php';
    133                                 require_once( '../admin-header.php' );
     133                                require_once( ABSPATH . 'wp-admin/admin-header.php' );
    134134                                echo '<div class="wrap">';
    135135                                confirm_delete_users( $_POST['allusers'] );
    136136                                echo '</div>';
    137                                 require_once( '../admin-footer.php' );
     137                                require_once( ABSPATH . 'wp-admin/admin-footer.php' );
    138138                                exit();
    139139                            break;
     
    246246);
    247247
    248 require_once( '../admin-header.php' );
     248require_once( ABSPATH . 'wp-admin/admin-header.php' );
    249249
    250250if ( isset( $_REQUEST['updated'] ) && $_REQUEST['updated'] == 'true' && ! empty( $_REQUEST['action'] ) ) {
     
    297297</div>
    298298
    299 <?php require_once( '../admin-footer.php' ); ?>
     299<?php require_once( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
  • trunk/src/wp-admin/options-discussion.php

    r25295 r25616  
    88
    99/** WordPress Administration Bootstrap */
    10 require_once('./admin.php');
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212if ( ! current_user_can( 'manage_options' ) )
     
    2929);
    3030
    31 include('./admin-header.php');
     31include( ABSPATH . 'wp-admin/admin-header.php' );
    3232?>
    3333
     
    250250</div>
    251251
    252 <?php include('./admin-footer.php'); ?>
     252<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
  • trunk/src/wp-admin/options-general.php

    r22299 r25616  
    88
    99/** WordPress Administration Bootstrap */
    10 require_once('./admin.php');
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212if ( ! current_user_can( 'manage_options' ) )
     
    8181);
    8282
    83 include('./admin-header.php');
     83include( ABSPATH . 'wp-admin/admin-header.php' );
    8484?>
    8585
     
    325325</div>
    326326
    327 <?php include('./admin-footer.php') ?>
     327<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
  • trunk/src/wp-admin/options-media.php

    r25552 r25616  
    88
    99/** WordPress Administration Bootstrap */
    10 require_once('./admin.php');
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212if ( ! current_user_can( 'manage_options' ) )
     
    3636);
    3737
    38 include('./admin-header.php');
     38include( ABSPATH . 'wp-admin/admin-header.php' );
    3939
    4040?>
     
    135135</div>
    136136
    137 <?php include('./admin-footer.php'); ?>
     137<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
  • trunk/src/wp-admin/options-permalink.php

    r25456 r25616  
    88
    99/** WordPress Administration Bootstrap */
    10 require_once('./admin.php');
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212if ( ! current_user_can( 'manage_options' ) )
     
    287287</div>
    288288
    289 <?php require('./admin-footer.php'); ?>
     289<?php require( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
  • trunk/src/wp-admin/options-reading.php

    r22653 r25616  
    88
    99/** WordPress Administration Bootstrap */
    10 require_once( './admin.php' );
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212if ( ! current_user_can( 'manage_options' ) )
     
    7373);
    7474
    75 include( './admin-header.php' );
     75include( ABSPATH . 'wp-admin/admin-header.php' );
    7676?>
    7777
     
    168168</form>
    169169</div>
    170 <?php include( './admin-footer.php' ); ?>
     170<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
  • trunk/src/wp-admin/options-writing.php

    r25412 r25616  
    88
    99/** WordPress Administration Bootstrap */
    10 require_once('./admin.php');
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212if ( ! current_user_can( 'manage_options' ) )
     
    5959);
    6060
    61 include('./admin-header.php');
     61include( ABSPATH . 'wp-admin/admin-header.php' );
    6262?>
    6363
     
    193193</div>
    194194
    195 <?php include('./admin-footer.php') ?>
     195<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
  • trunk/src/wp-admin/options.php

    r25372 r25616  
    1717
    1818/** WordPress Administration Bootstrap */
    19 require_once('./admin.php');
     19require_once( dirname( __FILE__ ) . '/admin.php' );
    2020
    2121$title = __('Settings');
     
    198198}
    199199
    200 include('./admin-header.php'); ?>
     200include( ABSPATH . 'wp-admin/admin-header.php' ); ?>
    201201
    202202<div class="wrap">
     
    254254
    255255<?php
    256 include('./admin-footer.php');
     256include( ABSPATH . 'wp-admin/admin-footer.php' );
  • trunk/src/wp-admin/plugin-editor.php

    r25534 r25616  
    88
    99/** WordPress Administration Bootstrap */
    10 require_once('./admin.php');
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212if ( is_multisite() && ! is_network_admin() ) {
  • trunk/src/wp-admin/plugin-install.php

    r25512 r25616  
    1313 * WordPress Administration Bootstrap.
    1414 */
    15 require_once('./admin.php');
     15require_once( dirname( __FILE__ ) . '/admin.php' );
    1616
    1717if ( ! current_user_can('install_plugins') )
  • trunk/src/wp-admin/plugins.php

    r24320 r25616  
    88
    99/** WordPress Administration Bootstrap */
    10 require_once('./admin.php');
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212if ( ! current_user_can('activate_plugins') )
  • trunk/src/wp-admin/post-new.php

    r25453 r25616  
    88
    99/** Load WordPress Administration Bootstrap */
    10 require_once('./admin.php');
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212if ( !isset($_GET['post_type']) )
     
    6363$post = get_default_post_to_edit( $post_type, true );
    6464$post_ID = $post->ID;
    65 include('edit-form-advanced.php');
    66 include('./admin-footer.php');
     65include( ABSPATH . 'wp-admin/edit-form-advanced.php' );
     66include( ABSPATH . 'wp-admin/admin-footer.php' );
  • trunk/src/wp-admin/post.php

    r24593 r25616  
    1010
    1111/** WordPress Administration Bootstrap */
    12 require_once('./admin.php');
     12require_once( dirname( __FILE__ ) . '/admin.php' );
    1313
    1414$parent_file = 'edit.php';
     
    196196    }
    197197
    198     include('./edit-form-advanced.php');
     198    include( ABSPATH . 'wp-admin/edit-form-advanced.php' );
    199199
    200200    break;
     
    310310    break;
    311311} // end switch
    312 include('./admin-footer.php');
     312include( ABSPATH . 'wp-admin/admin-footer.php' );
  • trunk/src/wp-admin/press-this.php

    r25131 r25616  
    1010
    1111/** WordPress Administration Bootstrap */
    12 require_once('./admin.php');
     12require_once( dirname( __FILE__ ) . '/admin.php' );
    1313
    1414header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
  • trunk/src/wp-admin/profile.php

    r19712 r25616  
    1616
    1717/** Load User Editing Page */
    18 require_once('./user-edit.php');
     18require_once( dirname( __FILE__ ) . '/user-edit.php' );
  • trunk/src/wp-admin/revision.php

    r25419 r25616  
    1717
    1818/** WordPress Administration Bootstrap */
    19 require_once('./admin.php');
     19require_once( dirname( __FILE__ ) . '/admin.php' );
    2020
    2121require ABSPATH . 'wp-admin/includes/revision.php';
     
    120120get_current_screen()->set_help_sidebar( $revisions_sidebar );
    121121
    122 require_once( './admin-header.php' );
     122require_once( ABSPATH . 'wp-admin/admin-header.php' );
    123123
    124124?>
     
    217217
    218218<?php
    219 require_once( './admin-footer.php' );
     219require_once( ABSPATH . 'wp-admin/admin-footer.php' );
  • trunk/src/wp-admin/theme-editor.php

    r25099 r25616  
    88
    99/** WordPress Administration Bootstrap */
    10 require_once('./admin.php');
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212if ( is_multisite() && ! is_network_admin() ) {
  • trunk/src/wp-admin/theme-install.php

    r24320 r25616  
    1111
    1212/** WordPress Administration Bootstrap */
    13 require_once('./admin.php');
     13require_once( dirname( __FILE__ ) . '/admin.php' );
    1414
    1515if ( ! current_user_can('install_themes') )
  • trunk/src/wp-admin/themes.php

    r24320 r25616  
    88
    99/** WordPress Administration Bootstrap */
    10 require_once('./admin.php');
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212if ( !current_user_can('switch_themes') && !current_user_can('edit_theme_options') )
     
    9292wp_enqueue_script( 'customize-loader' );
    9393
    94 require_once('./admin-header.php');
     94require_once( ABSPATH . 'wp-admin/admin-header.php' );
    9595?>
    9696
     
    214214if ( ! current_user_can( 'switch_themes' ) ) {
    215215    echo '</div>';
    216     require( './admin-footer.php' );
     216    require( ABSPATH . 'wp-admin/admin-footer.php' );
    217217    exit;
    218218}
     
    309309</div>
    310310
    311 <?php require('./admin-footer.php'); ?>
     311<?php require( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
  • trunk/src/wp-admin/tools.php

    r23314 r25616  
    88
    99/** WordPress Administration Bootstrap */
    10 require_once('./admin.php');
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212$title = __('Tools');
     
    3030);
    3131
    32 require_once('./admin-header.php');
     32require_once( ABSPATH . 'wp-admin/admin-header.php' );
    3333
    3434?>
     
    6969</div>
    7070<?php
    71 include('./admin-footer.php');
     71include( ABSPATH . 'wp-admin/admin-footer.php' );
  • trunk/src/wp-admin/update-core.php

    r25307 r25616  
    88
    99/** WordPress Administration Bootstrap */
    10 require_once('./admin.php');
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212wp_enqueue_style( 'plugin-install' );
  • trunk/src/wp-admin/update.php

    r24474 r25616  
    1111
    1212/** WordPress Administration Bootstrap */
    13 require_once('./admin.php');
     13require_once( dirname( __FILE__ ) . '/admin.php' );
    1414
    1515include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
  • trunk/src/wp-admin/upgrade.php

    r23570 r25616  
    1616
    1717/** Load WordPress Bootstrap */
    18 require( '../wp-load.php' );
     18require( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
    1919
    2020nocache_headers();
  • trunk/src/wp-admin/upload.php

    r24207 r25616  
    88
    99/** WordPress Administration Bootstrap */
    10 require_once( './admin.php' );
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212if ( !current_user_can('upload_files') )
     
    174174);
    175175
    176 require_once('./admin-header.php');
     176require_once( ABSPATH . 'wp-admin/admin-header.php' );
    177177?>
    178178
     
    248248
    249249<?php
    250 include('./admin-footer.php');
     250include( ABSPATH . 'wp-admin/admin-footer.php' );
  • trunk/src/wp-admin/user-edit.php

    r25606 r25616  
    88
    99/** WordPress Administration Bootstrap */
    10 require_once('./admin.php');
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212wp_reset_vars( array( 'action', 'user_id', 'wp_http_referer' ) );
  • trunk/src/wp-admin/user-new.php

    r25470 r25616  
    88
    99/** WordPress Administration Bootstrap */
    10 require_once('./admin.php');
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212if ( is_multisite() ) {
     
    202202}
    203203
    204 require_once( 'admin-header.php' );
     204require_once( ABSPATH . 'wp-admin/admin-header.php' );
    205205
    206206if ( isset($_GET['update']) ) {
     
    419419</div>
    420420<?php
    421 include('./admin-footer.php');
     421include( ABSPATH . 'wp-admin/admin-footer.php' );
  • trunk/src/wp-admin/user/about.php

    r22798 r25616  
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( './admin.php' );
     11require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 require( '../about.php' );
     13require( ABSPATH . 'wp-admin/about.php' );
  • trunk/src/wp-admin/user/credits.php

    r22798 r25616  
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( './admin.php' );
     11require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 require( '../credits.php' );
     13require( ABSPATH . 'wp-admin/credits.php' );
  • trunk/src/wp-admin/user/freedoms.php

    r22798 r25616  
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( './admin.php' );
     11require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 require( '../freedoms.php' );
     13require( ABSPATH . 'wp-admin/freedoms.php' );
  • trunk/src/wp-admin/user/index.php

    r17748 r25616  
    88 */
    99
    10 require_once( './admin.php' );
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    12 require( '../index.php' );
     12require( ABSPATH . 'wp-admin/index.php' );
  • trunk/src/wp-admin/user/profile.php

    r17748 r25616  
    88 */
    99
    10 require_once( './admin.php' );
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    12 require( '../profile.php' );
     12require( ABSPATH . 'wp-admin/profile.php' );
  • trunk/src/wp-admin/user/user-edit.php

    r15879 r25616  
    88 */
    99
    10 require_once( './admin.php' );
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    12 require( '../user-edit.php' );
     12require( ABSPATH . 'wp-admin/user-edit.php' );
  • trunk/src/wp-admin/users.php

    r23591 r25616  
    88
    99/** WordPress Administration Bootstrap */
    10 require_once( './admin.php' );
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212if ( ! current_user_can( 'list_users' ) )
     
    212212    add_action( 'admin_head', 'delete_users_add_js' );
    213213
    214     include ('admin-header.php');
     214    include( ABSPATH . 'wp-admin/admin-header.php' );
    215215?>
    216216<form action="" method="post" name="updateusers" id="updateusers">
     
    317317        $userids = $_REQUEST['users'];
    318318
    319     include ('admin-header.php');
     319    include( ABSPATH . 'wp-admin/admin-header.php' );
    320320?>
    321321<form action="" method="post" name="updateusers" id="updateusers">
     
    369369    }
    370370
    371     include('./admin-header.php');
     371    include( ABSPATH . 'wp-admin/admin-header.php' );
    372372
    373373    $messages = array();
     
    456456} // end of the $doaction switch
    457457
    458 include('./admin-footer.php');
     458include( ABSPATH . 'wp-admin/admin-footer.php' );
  • trunk/src/wp-admin/widgets.php

    r25226 r25616  
    88
    99/** WordPress Administration Bootstrap */
    10 require_once( './admin.php' );
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212/** WordPress Administration Widgets API */
     
    223223    $key = isset($_GET['key']) ? (int) $_GET['key'] : 0;
    224224
    225     require_once( './admin-header.php' ); ?>
     225    require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?>
    226226    <div class="wrap">
    227227    <?php screen_icon(); ?>
     
    290290    </div>
    291291<?php
    292     require_once( './admin-footer.php' );
     292    require_once( ABSPATH . 'wp-admin/admin-footer.php' );
    293293    exit;
    294294}
     
    303303);
    304304
    305 require_once( './admin-header.php' ); ?>
     305require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?>
    306306
    307307<div class="wrap">
     
    398398<?php
    399399do_action( 'sidebar_admin_page' );
    400 require_once( './admin-footer.php' );
     400require_once( ABSPATH . 'wp-admin/admin-footer.php' );
  • trunk/src/wp-cron.php

    r25290 r25616  
    2424if ( !defined('ABSPATH') ) {
    2525    /** Set up WordPress environment */
    26     require_once('./wp-load.php');
     26    require_once( dirname( __FILE__ ) . '/wp-load.php' );
    2727}
    2828
  • trunk/src/wp-includes/class-feed.php

    r24917 r25616  
    22
    33if ( !class_exists('SimplePie') )
    4     require_once (ABSPATH . WPINC . '/class-simplepie.php');
     4    require_once( ABSPATH . WPINC . '/class-simplepie.php' );
    55
    66class WP_Feed_Cache extends SimplePie_Cache {
  • trunk/src/wp-includes/feed.php

    r24997 r25616  
    528528 */
    529529function fetch_feed( $url ) {
    530     require_once ( ABSPATH . WPINC . '/class-feed.php' );
     530    require_once( ABSPATH . WPINC . '/class-feed.php' );
    531531
    532532    $feed = new SimplePie();
  • trunk/src/wp-includes/js/tinymce/wp-mce-help.php

    r23090 r25616  
    77
    88/** @ignore */
    9 require_once('../../../wp-load.php');
     9require_once( dirname( dirname( dirname( dirname( __FILE__ ) ) ) ) . '/wp-load.php' );
    1010header('Content-Type: text/html; charset=' . get_bloginfo('charset'));
    1111?>
  • trunk/src/wp-includes/rss-functions.php

    r19712 r25616  
    77
    88_deprecated_file( basename(__FILE__), '2.1', WPINC . '/rss.php' );
    9 require_once (ABSPATH . WPINC . '/rss.php');
     9require_once( ABSPATH . WPINC . '/rss.php' );
  • trunk/src/wp-links-opml.php

    r25480 r25616  
    1313 */
    1414
    15 require_once('./wp-load.php');
     15require_once( dirname( __FILE__ ) . '/wp-load.php' );
    1616
    1717header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true);
  • trunk/src/wp-signup.php

    r25600 r25616  
    66add_action( 'wp_head', 'wp_no_robots' );
    77
    8 require( './wp-blog-header.php' );
     8require( dirname( __FILE__ ) . '/wp-blog-header.php' );
    99
    1010if ( is_array( get_site_option( 'illegal_names' )) && isset( $_GET[ 'new' ] ) && in_array( $_GET[ 'new' ], get_site_option( 'illegal_names' ) ) == true ) {
  • trunk/src/wp-trackback.php

    r25564 r25616  
    1010
    1111if (empty($wp)) {
    12     require_once('./wp-load.php');
     12    require_once( dirname( __FILE__ ) . '/wp-load.php' );
    1313    wp( array( 'tb' => '1' ) );
    1414}
Note: See TracChangeset for help on using the changeset viewer.