WordPress.org

Make WordPress Core

Ticket #17092: 17092.diff

File 17092.diff, 66.8 KB (added by kawauso, 3 years ago)

Against trunk, using ABSPATH

  • index.php

     
    1414define('WP_USE_THEMES', true); 
    1515 
    1616/** Loads the WordPress Environment and Template */ 
    17 require('./wp-blog-header.php'); 
     17require( dirname(__FILE__) . '/wp-blog-header.php' ); 
    1818?> 
     19 No newline at end of file 
  • wp-activate.php

     
    44/** Sets up the WordPress Environment. */ 
    55require( dirname(__FILE__) . '/wp-load.php' ); 
    66 
    7 require( './wp-blog-header.php' ); 
     7require( dirname(__FILE__) . '/wp-blog-header.php' ); 
    88 
    99if ( !is_multisite() ) { 
    1010        wp_redirect( site_url( '/wp-login.php?action=register' ) ); 
  • wp-admin/admin-ajax.php

     
    1717if ( ! isset( $_REQUEST['action'] ) ) 
    1818        die('-1'); 
    1919 
    20 require_once('../wp-load.php'); 
     20require_once( dirname(dirname(__FILE__)) . '/wp-load.php' ); 
    2121 
    22 require_once('./includes/admin.php'); 
     22require_once( ABSPATH . 'wp-admin/includes/admin.php' ); 
    2323@header('Content-Type: text/html; charset=' . get_option('blog_charset')); 
    2424send_nosniff_header(); 
    2525 
  • wp-admin/admin-header.php

     
    88 
    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 
    1313get_admin_page_title(); 
    1414$title = esc_html( strip_tags( $title ) ); 
  • wp-admin/admin-post.php

     
    1212if ( defined('ABSPATH') ) 
    1313        require_once(ABSPATH . 'wp-load.php'); 
    1414else 
    15         require_once('../wp-load.php'); 
     15        require_once( dirname(dirname(__FILE__)) . '/wp-load.php' ); 
    1616 
    1717require_once(ABSPATH . 'wp-admin/includes/admin.php'); 
    1818 
  • wp-admin/async-upload.php

     
    1111if ( defined('ABSPATH') ) 
    1212        require_once(ABSPATH . 'wp-load.php'); 
    1313else 
    14         require_once('../wp-load.php'); 
     14        require_once( dirname(dirname(__FILE__)) . '/wp-load.php' ); 
    1515 
    1616// Flash often fails to send cookies with the POST or upload, so we need to pass it in GET or POST instead 
    1717if ( is_ssl() && empty($_COOKIE[SECURE_AUTH_COOKIE]) && !empty($_REQUEST['auth_cookie']) ) 
     
    2121if ( empty($_COOKIE[LOGGED_IN_COOKIE]) && !empty($_REQUEST['logged_in_cookie']) ) 
    2222        $_COOKIE[LOGGED_IN_COOKIE] = $_REQUEST['logged_in_cookie']; 
    2323unset($current_user); 
    24 require_once('./admin.php'); 
     24require_once( ABSPATH . 'wp-admin/admin.php' ); 
    2525 
    2626header('Content-Type: text/plain; charset=' . get_option('blog_charset')); 
    2727 
  • wp-admin/comment.php

     
    77 */ 
    88 
    99/** Load WordPress Bootstrap */ 
    10 require_once('./admin.php'); 
     10require_once( dirname(__FILE__) . '/admin.php' ); 
    1111 
    1212$parent_file = 'edit-comments.php'; 
    1313$submenu_file = 'edit-comments.php'; 
     
    3636 */ 
    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} 
    4242 
     
    5353        ); 
    5454 
    5555        wp_enqueue_script('comment'); 
    56         require_once('./admin-header.php'); 
     56        require_once( ABSPATH . 'wp-admin/admin-header.php' ); 
    5757 
    5858        $comment_id = absint( $_GET['c'] ); 
    5959 
     
    6868 
    6969        $comment = get_comment_to_edit( $comment_id ); 
    7070 
    71         include('./edit-form-comment.php'); 
     71        include( ABSPATH . 'wp-admin/edit-form-comment.php' ); 
    7272 
    7373        break; 
    7474 
     
    9797                die(); 
    9898        } 
    9999 
    100         require_once('./admin-header.php'); 
     100        require_once( ABSPATH . 'wp-admin/admin-header.php' ); 
    101101 
    102102        $formaction    = $action . 'comment'; 
    103103        $nonce_action  = 'approve' == $action ? 'approve-comment_' : 'delete-comment_'; 
     
    284284 
    285285} // end switch 
    286286 
    287 include('./admin-footer.php'); 
     287include( ABSPATH . 'wp-admin/admin-footer.php' ); 
    288288 
    289289?> 
  • wp-admin/edit-comments.php

     
    77 */ 
    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?')); 
    1313 
     
    129129        '<p>' . __( '<a href="http://codex.wordpress.org/Keyboard_Shortcuts" target="_blank">Documentation on Keyboard Shortcuts</a>' ) . '</p>' . 
    130130        '<p>' . __( '<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>' ) . '</p>' 
    131131); 
    132 require_once('./admin-header.php'); 
     132require_once( ABSPATH . 'wp-admin/admin-header.php' ); 
    133133?> 
    134134 
    135135<div class="wrap"> 
     
    245245<?php 
    246246wp_comment_reply('-1', true, 'detail'); 
    247247wp_comment_trashnotice(); 
    248 include('./admin-footer.php'); ?> 
     248include( ABSPATH . 'wp-admin/admin-footer.php' ); ?> 
  • wp-admin/edit-form-advanced.php

     
    104104$post_type_object = get_post_type_object($post_type); 
    105105 
    106106// All meta boxes should be defined and added before the first do_meta_boxes() call (or potentially during the do_meta_boxes action). 
    107 require_once('./includes/meta-boxes.php'); 
     107require_once( ABSPATH . 'wp-admin/includes/meta-boxes.php' ); 
    108108 
    109109add_meta_box('submitdiv', __('Publish'), 'post_submit_meta_box', $post_type, 'side', 'core'); 
    110110 
     
    196196        ); 
    197197} 
    198198 
    199 require_once('./admin-header.php'); 
     199require_once( ABSPATH . 'wp-admin/admin-header.php' ); 
    200200?> 
    201201 
    202202<div class="wrap"> 
  • wp-admin/edit-link-form.php

     
    2222        $nonce_action = 'add-bookmark'; 
    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', 'link', 'side', 'core'); 
    2828add_meta_box('linkcategorydiv', __('Categories'), 'link_categories_meta_box', 'link', 'normal', 'core'); 
     
    4848        '<p>' . __( '<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>' ) . '</p>' 
    4949); 
    5050 
    51 require_once ('admin-header.php'); 
     51require_once ( ABSPATH . 'wp-admin/admin-header.php' ); 
    5252 
    5353?> 
    5454<div class="wrap"> 
  • wp-admin/edit-tags.php

     
    77 */ 
    88 
    99/** WordPress Administration Bootstrap */ 
    10 require_once('./admin.php'); 
     10require_once( dirname(__FILE__) . '/admin.php' ); 
    1111$tax = get_taxonomy( $taxnow ); 
    1212if ( !current_user_can( $tax->cap->manage_terms ) ) 
    1313        wp_die( __( 'Cheatin&#8217; uh?' ) ); 
     
    113113case 'edit': 
    114114        $title = $tax->labels->edit_item; 
    115115 
    116         require_once ( 'admin-header.php' ); 
     116        require_once ( ABSPATH . 'wp-admin/admin-header.php' ); 
    117117        $tag_ID = (int) $_REQUEST['tag_ID']; 
    118118 
    119119        $tag = get_term( $tag_ID, $taxonomy, OBJECT, 'edit' ); 
    120         include( './edit-tag-form.php' ); 
     120        include( ABSPATH . 'wp-admin/edit-tag-form.php' ); 
    121121 
    122122break; 
    123123 
     
    221221        unset($help); 
    222222} 
    223223 
    224 require_once ('admin-header.php'); 
     224require_once ( ABSPATH . 'wp-admin/admin-header.php' ); 
    225225 
    226226if ( !current_user_can($tax->cap->edit_terms) ) 
    227227        wp_die( __('You are not allowed to edit this item.') ); 
     
    389389break; 
    390390} 
    391391 
    392 include('./admin-footer.php'); 
     392include( ABSPATH . 'wp-admin/admin-footer.php' ); 
    393393 
    394394?> 
  • wp-admin/edit.php

     
    77 */ 
    88 
    99/** WordPress Administration Bootstrap */ 
    10 require_once( './admin.php' ); 
     10require_once( dirname(__FILE__) . '/admin.php' ); 
    1111 
    1212if ( !isset($_GET['post_type']) ) 
    1313        $post_type = 'post'; 
     
    186186 
    187187add_screen_option( 'per_page', array('label' => $title, 'default' => 20) ); 
    188188 
    189 require_once('./admin-header.php'); 
     189require_once( ABSPATH . 'wp-admin/admin-header.php' ); 
    190190?> 
    191191<div class="wrap"> 
    192192<?php screen_icon(); ?> 
     
    264264</div> 
    265265 
    266266<?php 
    267 include('./admin-footer.php'); 
     267include( ABSPATH . 'wp-admin/admin-footer.php' ); 
  • wp-admin/export.php

     
    77 */ 
    88 
    99/** Load WordPress Bootstrap */ 
    10 require_once ('admin.php'); 
     10require_once( dirname(__FILE__) . 'admin.php' ); 
    1111 
    1212if ( !current_user_can('export') ) 
    1313        wp_die(__('You do not have sufficient permissions to export the content of this site.')); 
    1414 
    1515/** Load WordPress export API */ 
    16 require_once('./includes/export.php'); 
     16require_once( ABSPATH . 'wp-admin/includes/export.php' ); 
    1717$title = __('Export'); 
    1818 
    1919function add_js() { 
     
    8888        die(); 
    8989} 
    9090 
    91 require_once ('admin-header.php'); 
     91require_once ( ABSPATH . 'wp-admin/admin-header.php' ); 
    9292 
    9393function export_date_options() { 
    9494        global $wpdb, $wp_locale; 
     
    203203</form> 
    204204</div> 
    205205 
    206 <?php include('admin-footer.php'); ?> 
     206<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?> 
  • wp-admin/import.php

     
    4545wp_enqueue_script( 'plugin-install' ); 
    4646wp_admin_css( 'plugin-install' ); 
    4747 
    48 require_once ('admin-header.php'); 
     48require_once ( ABSPATH . 'wp-admin/admin-header.php' ); 
    4949$parent_file = 'tools.php'; 
    5050?> 
    5151 
     
    143143 
    144144<?php 
    145145 
    146 include ('admin-footer.php'); 
     146include ( ABSPATH . 'wp-admin/admin-footer.php' ); 
    147147?> 
  • wp-admin/index-extra.php

     
    77 */ 
    88 
    99/** Load WordPress Bootstrap */ 
    10 require_once( './admin.php' ); 
     10require_once( dirname(__FILE__) . '/admin.php' ); 
    1111 
    1212/** Load WordPress Administration Dashboard API */ 
    1313require(ABSPATH . 'wp-admin/includes/dashboard.php' ); 
  • wp-admin/index.php

     
    77 */ 
    88 
    99/** Load WordPress Bootstrap */ 
    10 require_once('./admin.php'); 
     10require_once( dirname(__FILE__) . '/admin.php' ); 
    1111 
    1212/** Load WordPress dashboard API */ 
    1313require_once(ABSPATH . 'wp-admin/includes/dashboard.php'); 
  • wp-admin/install.php

     
    3636require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' ); 
    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'] ) ? $_GET['step'] : 0; 
    4545 
  • wp-admin/link-add.php

     
    77 */ 
    88 
    99/** Load WordPress Administration Bootstrap */ 
    10 require_once('./admin.php'); 
     10require_once( dirname(__FILE__) . '/admin.php' ); 
    1111 
    1212if ( ! current_user_can('manage_links') ) 
    1313        wp_die(__('You do not have sufficient permissions to add links to this site.')); 
     
    2424wp_enqueue_script('xfn'); 
    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' ); 
    3030?> 
  • wp-admin/link-manager.php

     
    5050        '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' 
    5151); 
    5252 
    53 include_once ('./admin-header.php'); 
     53include_once( ABSPATH . 'wp-admin/admin-header.php' ); 
    5454 
    5555if ( ! current_user_can('manage_links') ) 
    5656        wp_die(__("You do not have sufficient permissions to edit the links for this site.")); 
     
    8686</div> 
    8787 
    8888<?php 
    89 include('./admin-footer.php'); 
     89include( ABSPATH . 'wp-admin/admin-footer.php' ); 
  • wp-admin/link.php

     
    108108                if (!$link = get_link_to_edit($link_id)) 
    109109                        wp_die(__('Link not found.')); 
    110110 
    111                 include ('edit-link-form.php'); 
    112                 include ('admin-footer.php'); 
     111                include ( ABSPATH . 'wp-admin/edit-link-form.php' ); 
     112                include ( ABSPATH . 'wp-admin/admin-footer.php' ); 
    113113                break; 
    114114 
    115115        default : 
  • wp-admin/maint/repair.php

     
    22 
    33define('WP_REPAIRING', true); 
    44 
    5 require_once('../../wp-load.php'); 
     5require_once( dirname(dirname(dirname(__FILE__))) . '/wp-load.php' ); 
    66 
    77header( 'Content-Type: text/html; charset=utf-8' ); 
    88?> 
  • wp-admin/media-new.php

     
    88 
    99$_GET['inline'] = 'true'; 
    1010/** Administration bootstrap */ 
    11 require_once('./admin.php'); 
    12 require_once('./media-upload.php'); 
     11require_once( dirname(__FILE__) . '/admin.php' ); 
     12require_once( ABSPATH . 'wp-admin/media-upload.php' ); 
    1313 
    1414?> 
     15 No newline at end of file 
  • wp-admin/media-upload.php

     
    1313        define( 'IFRAME_REQUEST' , true ); 
    1414 
    1515/** Load WordPress Administration Bootstrap */ 
    16 require_once('./admin.php'); 
     16require_once( dirname(__FILE__) . '/admin.php' ); 
    1717 
    1818if (!current_user_can('upload_files')) 
    1919        wp_die(__('You do not have permission to upload files.')); 
     
    7070                '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' 
    7171        ); 
    7272 
    73         require_once('./admin-header.php'); ?> 
     73        require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?> 
    7474        <div class="wrap"> 
    7575        <?php screen_icon(); ?> 
    7676        <h2><?php echo esc_html( $title ); ?></h2> 
     
    9898        </div> 
    9999 
    100100<?php 
    101         include('./admin-footer.php'); 
     101        include( ABSPATH . 'wp-admin/admin-footer.php' ); 
    102102 
    103103} else { 
    104104 
  • wp-admin/media.php

     
    77 */ 
    88 
    99/** Load WordPress Administration Bootstrap */ 
    10 require_once('./admin.php'); 
     10require_once( dirname(__FILE__) . '/admin.php' ); 
    1111 
    1212$parent_file = 'upload.php'; 
    1313$submenu_file = 'upload.php'; 
     
    7777        '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' 
    7878); 
    7979 
    80         require( './admin-header.php' ); 
     80        require( ABSPATH . 'wp-admin/admin-header.php' ); 
    8181 
    8282        $parent_file = 'upload.php'; 
    8383        $message = ''; 
     
    123123 
    124124<?php 
    125125 
    126         require( './admin-footer.php' ); 
     126        require( ABSPATH . 'wp-admin/admin-footer.php' ); 
    127127 
    128128        exit; 
    129129 
  • wp-admin/moderation.php

     
    77 * @package WordPress 
    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; 
    1313?> 
  • wp-admin/ms-admin.php

     
    77 * @since 3.0.0 
    88 */ 
    99 
    10 require_once( './admin.php' ); 
     10require_once( dirname(__FILE__) . '/admin.php' ); 
    1111 
    1212wp_redirect( network_admin_url() ); 
    1313exit; 
  • wp-admin/ms-delete-site.php

     
    77 * @since 3.0.0 
    88 */ 
    99 
    10 require_once( './admin.php' ); 
     10require_once( dirname(__FILE__) . '/admin.php' ); 
    1111 
    1212if ( !is_multisite() ) 
    1313        wp_die( __( 'Multisite support is not enabled.' ) ); 
     
    2727 
    2828$title = __( 'Delete Site' ); 
    2929$parent_file = 'tools.php'; 
    30 require_once( './admin-header.php' ); 
     30require_once( ABSPATH . 'wp-admin/admin-header.php' ); 
    3131 
    3232echo '<div class="wrap">'; 
    3333screen_icon(); 
     
    7676} 
    7777echo '</div>'; 
    7878 
    79 include( './admin-footer.php' ); 
     79include( ABSPATH . 'wp-admin/admin-footer.php' ); 
    8080?> 
  • wp-admin/ms-edit.php

     
    77 * @since 3.0.0 
    88 */ 
    99 
    10 require_once( './admin.php' ); 
     10require_once( dirname(__FILE__) . '/admin.php' ); 
    1111 
    1212wp_redirect( network_admin_url() ); 
    1313exit; 
  • wp-admin/ms-options.php

     
    77 * @since 3.0.0 
    88 */ 
    99 
    10 require_once( './admin.php' ); 
     10require_once( dirname(__FILE__) . '/admin.php' ); 
    1111 
    1212wp_redirect( network_admin_url('settings.php') ); 
     13 No newline at end of file 
  • wp-admin/ms-sites.php

     
    77 * @since 3.0.0 
    88 */ 
    99 
    10 require_once( './admin.php' ); 
     10require_once( dirname(__FILE__) . '/admin.php' ); 
    1111 
    1212wp_redirect( network_admin_url('sites.php') ); 
    1313exit; 
  • wp-admin/ms-themes.php

     
    77 * @since 3.0.0 
    88 */ 
    99 
    10 require_once( './admin.php' ); 
     10require_once( dirname(__FILE__) . '/admin.php' ); 
    1111 
    1212wp_redirect( network_admin_url('themes.php') ); 
    1313exit; 
  • wp-admin/ms-upgrade-network.php

     
    77 * @since 3.0.0 
    88 */ 
    99 
    10 require_once('admin.php'); 
     10require_once( dirname(__FILE__) . '/admin.php' ); 
    1111 
    1212wp_redirect( network_admin_url('upgrade.php') ); 
    1313exit; 
  • wp-admin/ms-users.php

     
    77 * @since 3.0.0 
    88 */ 
    99 
    10 require_once( './admin.php' ); 
     10require_once( dirname(__FILE__) . '/admin.php' ); 
    1111 
    1212wp_redirect( network_admin_url('users.php') ); 
    1313exit; 
  • wp-admin/my-sites.php

     
    77 * @since 3.0.0 
    88 */ 
    99 
    10 require_once( './admin.php' ); 
     10require_once( dirname(__FILE__) . '/admin.php' ); 
    1111 
    1212if ( !is_multisite() ) 
    1313        wp_die( __( 'Multisite support is not enabled.' ) ); 
     
    4646        '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' 
    4747); 
    4848 
    49 require_once( './admin-header.php' ); 
     49require_once( ABSPATH . 'wp-admin/admin-header.php' ); 
    5050 
    5151if ( $updated ) { ?> 
    5252        <div id="message" class="updated"><p><strong><?php _e( 'Settings saved.' ); ?></strong></p></div> 
     
    106106        </form> 
    107107        </div> 
    108108<?php 
    109 include( './admin-footer.php' ); 
     109include( ABSPATH . 'wp-admin/admin-footer.php' ); 
    110110?> 
  • wp-admin/nav-menus.php

     
    1010 */ 
    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 
    1616require_once( ABSPATH . 'wp-admin/includes/nav-menu.php' ); 
     
    459459add_contextual_help($current_screen, $help); 
    460460 
    461461// Get the admin header 
    462 require_once( './admin-header.php' ); 
     462require_once( ABSPATH . 'wp-admin/admin-header.php' ); 
    463463?> 
    464464<div class="wrap"> 
    465465        <?php screen_icon(); ?> 
     
    608608</div><!-- /.wrap--> 
    609609 
    610610 
    611 <?php include( './admin-footer.php' ); ?> 
     611<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?> 
  • wp-admin/network.php

     
    1313define( 'WP_NETWORK_ADMIN_PAGE', true ); 
    1414 
    1515/** WordPress Administration Bootstrap */ 
    16 require_once( './admin.php' ); 
     16require_once( dirname(__FILE__) . '/admin.php' ); 
    1717 
    1818if ( ! is_super_admin() ) 
    1919        wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) ); 
  • wp-admin/network/edit.php

     
    88 */ 
    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.' ) ); 
     
    360360                        $_POST['allusers'] = array( $id ); // confirm_delete_users() can only handle with arrays 
    361361                        $title = __( 'Users' ); 
    362362                        $parent_file = 'users.php'; 
    363                         require_once( '../admin-header.php' ); 
     363                        require_once( ABSPATH . 'wp-admin/admin-header.php' ); 
    364364                        echo '<div class="wrap">'; 
    365365                        confirm_delete_users( $_POST['allusers'] ); 
    366366                        echo '</div>'; 
    367             require_once( '../admin-footer.php' ); 
     367            require_once( ABSPATH . 'wp-admin/admin-footer.php' ); 
    368368                } else { 
    369369                        wp_redirect( network_admin_url( 'users.php' ) ); 
    370370                } 
     
    391391                                                                wp_die( __( 'You do not have permission to access this page.' ) ); 
    392392                                                        $title = __( 'Users' ); 
    393393                                                        $parent_file = 'users.php'; 
    394                                                         require_once( '../admin-header.php' ); 
     394                                                        require_once( ABSPATH . 'wp-admin/admin-header.php' ); 
    395395                                                        echo '<div class="wrap">'; 
    396396                                                        confirm_delete_users( $_POST['allusers'] ); 
    397397                                                        echo '</div>'; 
    398                                             require_once( '../admin-footer.php' ); 
     398                                            require_once( ABSPATH . 'wp-admin/admin-footer.php' ); 
    399399                                            exit(); 
    400400                                        break; 
    401401 
  • wp-admin/network/index-extra.php

     
    88 */ 
    99 
    1010/** Load WordPress Administration Bootstrap */ 
    11 require_once( './admin.php' ); 
     11require_once( dirname(__FILE__) . '/admin.php' ); 
    1212 
    13 require( '../index-extra.php' ); 
     13require( ABSPATH . 'wp-admin/index-extra.php' ); 
  • wp-admin/network/index.php

     
    88 */ 
    99 
    1010/** Load WordPress Administration Bootstrap */ 
    11 require_once( './admin.php' ); 
     11require_once( dirname(__FILE__) . '/admin.php' ); 
    1212 
    1313/** Load WordPress dashboard API */ 
    1414require_once( ABSPATH . 'wp-admin/includes/dashboard.php' ); 
     
    4242 
    4343add_screen_option('layout_columns', array('max' => 4, 'default' => 2) ); 
    4444 
    45 require_once( '../admin-header.php' ); 
     45require_once( ABSPATH . 'wp-admin/admin-header.php' ); 
    4646 
    4747?> 
    4848 
     
    5959 
    6060</div><!-- wrap --> 
    6161 
    62 <?php include( '../admin-footer.php' ); ?> 
     62<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?> 
  • wp-admin/network/plugin-editor.php

     
    88 */ 
    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' ); 
  • wp-admin/network/plugin-install.php

     
    1111        define( 'IFRAME_REQUEST', true ); 
    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' ); 
    20  No newline at end of file 
     19require( ABSPATH . 'wp-admin/plugin-install.php' ); 
     20 No newline at end of file 
  • wp-admin/network/plugins.php

     
    88 */ 
    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' ); 
    17  No newline at end of file 
     16require( ABSPATH . 'wp-admin/plugins.php' ); 
     17 No newline at end of file 
  • wp-admin/network/profile.php

     
    88 */ 
    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' ); 
    17  No newline at end of file 
     16require( ABSPATH . 'wp-admin/profile.php' ); 
     17 No newline at end of file 
  • wp-admin/network/settings.php

     
    88 */ 
    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.' ) ); 
     
    3434        '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' 
    3535); 
    3636 
    37 include( '../admin-header.php' ); 
     37include( ABSPATH . 'wp-admin/admin-header.php' ); 
    3838 
    3939if (isset($_GET['updated'])) { 
    4040        ?> 
     
    274274        </form> 
    275275</div> 
    276276 
    277 <?php include( '../admin-footer.php' ); ?> 
     277<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?> 
  • wp-admin/network/setup.php

     
    88 */ 
    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' ); 
    17  No newline at end of file 
     16require( ABSPATH . 'wp-admin/network.php' ); 
     17 No newline at end of file 
  • wp-admin/network/site-info.php

     
    88 */ 
    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.' ) ); 
     
    8282$parent_file = 'sites.php'; 
    8383$submenu_file = 'sites.php'; 
    8484 
    85 require('../admin-header.php'); 
     85require( ABSPATH . 'wp-admin/admin-header.php' ); 
    8686 
    8787?> 
    8888 
     
    163163 
    164164</div> 
    165165<?php 
    166 require('../admin-footer.php'); 
     166require( ABSPATH . 'wp-admin/admin-footer.php' ); 
  • wp-admin/network/site-new.php

     
    88 */ 
    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.' ) ); 
     
    9898$title = __('Add New Site'); 
    9999$parent_file = 'sites.php'; 
    100100 
    101 require('../admin-header.php'); 
     101require( ABSPATH . 'wp-admin/admin-header.php' ); 
    102102 
    103103?> 
    104104 
     
    141141        </form> 
    142142</div> 
    143143<?php 
    144 require('../admin-footer.php'); 
     144require( ABSPATH . 'wp-admin/admin-footer.php' ); 
    145145?> 
  • wp-admin/network/site-settings.php

     
    88 */ 
    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.' ) ); 
     
    7272$parent_file = 'sites.php'; 
    7373$submenu_file = 'sites.php'; 
    7474 
    75 require('../admin-header.php'); 
     75require( ABSPATH . 'wp-admin/admin-header.php' ); 
    7676 
    7777?> 
    7878 
     
    147147 
    148148</div> 
    149149<?php 
    150 require('../admin-footer.php'); 
     150require( ABSPATH . 'wp-admin/admin-footer.php' ); 
  • wp-admin/network/site-themes.php

     
    88 */ 
    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.' ) ); 
     
    128128$parent_file = 'sites.php'; 
    129129$submenu_file = 'sites.php'; 
    130130 
    131 require('../admin-header.php'); ?> 
     131require( ABSPATH . 'wp-admin/admin-header.php' ); ?> 
    132132 
    133133<div class="wrap"> 
    134134<?php screen_icon('ms-admin'); ?> 
     
    176176</form> 
    177177 
    178178</div> 
    179 <?php include(ABSPATH . 'wp-admin/admin-footer.php'); ?> 
     179<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?> 
  • wp-admin/network/site-users.php

     
    88 */ 
    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.' ) ); 
     
    161161$parent_file = 'sites.php'; 
    162162$submenu_file = 'sites.php'; 
    163163 
    164 require('../admin-header.php'); ?> 
     164require( ABSPATH . 'wp-admin/admin-header.php' ); ?> 
    165165 
    166166<div class="wrap"> 
    167167<?php screen_icon('ms-admin'); ?> 
     
    305305<?php endif; ?> 
    306306</div> 
    307307<?php 
    308 require('../admin-footer.php'); 
     308require( ABSPATH . 'wp-admin/admin-footer.php' ); 
  • wp-admin/network/sites.php

     
    88 */ 
    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.' ) ); 
     
    9494        exit; 
    9595} 
    9696 
    97 require_once( '../admin-header.php' ); 
     97require_once( ABSPATH . 'wp-admin/admin-header.php' ); 
    9898?> 
    9999 
    100100<div class="wrap"> 
     
    121121</div> 
    122122<?php 
    123123 
    124 require_once( '../admin-footer.php' ); ?> 
     124require_once( ABSPATH . 'wp-admin/admin-footer.php' ); ?> 
  • wp-admin/network/theme-editor.php

     
    88 */ 
    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' ); 
    17  No newline at end of file 
     16require( ABSPATH . 'wp-admin/theme-editor.php' ); 
     17 No newline at end of file 
  • wp-admin/network/theme-install.php

     
    1111        define( 'IFRAME_REQUEST', true ); 
    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' ); 
    20  No newline at end of file 
     19require( ABSPATH . 'wp-admin/theme-install.php' ); 
     20 No newline at end of file 
  • wp-admin/network/themes.php

     
    88 */ 
    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.' ) ); 
  • wp-admin/network/update-core.php

     
    88 */ 
    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' ); 
    17  No newline at end of file 
     16require( ABSPATH . 'wp-admin/update-core.php' ); 
     17 No newline at end of file 
  • wp-admin/network/update.php

     
    1111        define( 'IFRAME_REQUEST', true ); 
    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' ); 
  • wp-admin/network/upgrade.php

     
    88 */ 
    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.' ) ); 
     
    2727        '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' 
    2828); 
    2929 
    30 require_once('../admin-header.php'); 
     30require_once( ABSPATH . 'wp-admin/admin-header.php' ); 
    3131 
    3232if ( ! current_user_can( 'manage_network' ) ) 
    3333        wp_die( __( 'You do not have permission to access this page.' ) ); 
     
    8383?> 
    8484</div> 
    8585 
    86 <?php include('../admin-footer.php'); ?> 
     86<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?> 
  • wp-admin/network/user-edit.php

     
    88 */ 
    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' ); 
    17  No newline at end of file 
     16require( ABSPATH . 'wp-admin/user-edit.php' ); 
     17 No newline at end of file 
  • wp-admin/network/user-new.php

     
    88 */ 
    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.' ) ); 
     
    6161$title = __('Add New User'); 
    6262$parent_file = 'users.php'; 
    6363 
    64 require('../admin-header.php'); ?> 
     64require( ABSPATH . 'wp-admin/admin-header.php' ); ?> 
    6565 
    6666<div class="wrap"> 
    6767<?php screen_icon(); ?> 
     
    9090        </form> 
    9191</div> 
    9292<?php 
    93 require('../admin-footer.php'); 
     93require( ABSPATH . 'wp-admin/admin-footer.php' ); 
    9494?> 
     95 No newline at end of file 
  • wp-admin/network/users.php

     
    88 */ 
    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.' ) ); 
     
    4242        '<p>' . __('<a href="http://wordpress.org/support/forum/multisite/" target="_blank">Support Forums</a>') . '</p>' 
    4343); 
    4444 
    45 require_once( '../admin-header.php' ); 
     45require_once( ABSPATH . 'wp-admin/admin-header.php' ); 
    4646 
    4747if ( isset( $_REQUEST['updated'] ) && $_REQUEST['updated'] == 'true' && ! empty( $_REQUEST['action'] ) ) { 
    4848        ?> 
     
    9393        </form> 
    9494</div> 
    9595 
    96 <?php require_once( '../admin-footer.php' ); ?> 
     96<?php require_once( ABSPATH . 'wp-admin/admin-footer.php' ); ?> 
  • wp-admin/options-discussion.php

     
    77 */ 
    88 
    99/** WordPress Administration Bootstrap */ 
    10 require_once('./admin.php'); 
     10require_once( dirname(__FILE__) . '/admin.php' ); 
    1111 
    1212if ( ! current_user_can( 'manage_options' ) ) 
    1313        wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) ); 
     
    2323        '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' 
    2424); 
    2525 
    26 include('./admin-header.php'); 
     26include( ABSPATH . 'wp-admin/admin-header.php' ); 
    2727?> 
    2828 
    2929<div class="wrap"> 
     
    245245</form> 
    246246</div> 
    247247 
    248 <?php include('./admin-footer.php'); ?> 
     248<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?> 
  • wp-admin/options-general.php

     
    77 */ 
    88 
    99/** WordPress Administration Bootstrap */ 
    10 require_once('./admin.php'); 
     10require_once( dirname(__FILE__) . '/admin.php' ); 
    1111 
    1212if ( ! current_user_can( 'manage_options' ) ) 
    1313        wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) ); 
     
    7070        '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' 
    7171); 
    7272 
    73 include('./admin-header.php'); 
     73include( ABSPATH . 'wp-admin/admin-header.php' ); 
    7474?> 
    7575 
    7676<div class="wrap"> 
     
    313313 
    314314</div> 
    315315 
    316 <?php include('./admin-footer.php') ?> 
     316<?php include( ABSPATH . 'wp-admin/admin-footer.php') ?> 
  • wp-admin/options-media.php

     
    77 */ 
    88 
    99/** WordPress Administration Bootstrap */ 
    10 require_once('./admin.php'); 
     10require_once( dirname(__FILE__) . '/admin.php' ); 
    1111 
    1212if ( ! current_user_can( 'manage_options' ) ) 
    1313        wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) ); 
     
    2525        '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' 
    2626); 
    2727 
    28 include('./admin-header.php'); 
     28include( ABSPATH . 'wp-admin/admin-header.php' ); 
    2929 
    3030?> 
    3131 
     
    138138 
    139139</div> 
    140140 
    141 <?php include('./admin-footer.php'); ?> 
     141<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?> 
  • wp-admin/options-permalink.php

     
    77 */ 
    88 
    99/** WordPress Administration Bootstrap */ 
    10 require_once('./admin.php'); 
     10require_once( dirname(__FILE__) . '/admin.php' ); 
    1111 
    1212if ( ! current_user_can( 'manage_options' ) ) 
    1313        wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) ); 
     
    5454} 
    5555add_filter('admin_head', 'add_js'); 
    5656 
    57 include('./admin-header.php'); 
     57include( ABSPATH . 'wp-admin/admin-header.php' ); 
    5858 
    5959$home_path = get_home_path(); 
    6060$iis7_permalinks = iis7_supports_permalinks(); 
     
    257257 
    258258</div> 
    259259 
    260 <?php require('./admin-footer.php'); ?> 
     260<?php require( ABSPATH . 'wp-admin/admin-footer.php' ); ?> 
  • wp-admin/options-privacy.php

     
    77 */ 
    88 
    99/** Load WordPress Administration Bootstrap */ 
    10 require_once('./admin.php'); 
     10require_once( dirname(__FILE__) . '/admin.php' ); 
    1111 
    1212if ( ! current_user_can( 'manage_options' ) ) 
    1313        wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) ); 
     
    2424        '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' 
    2525); 
    2626 
    27 include('./admin-header.php'); 
     27include( ABSPATH . 'wp-admin/admin-header.php' ); 
    2828?> 
    2929 
    3030<div class="wrap"> 
     
    5555 
    5656</div> 
    5757 
    58 <?php include('./admin-footer.php') ?> 
     58<?php ABSPATH . 'wp-admin/admin-footer.php') ?> 
  • wp-admin/options-reading.php

     
    77 */ 
    88 
    99/** WordPress Administration Bootstrap */ 
    10 require_once( './admin.php' ); 
     10require_once( dirname(__FILE__) . '/admin.php' ); 
    1111 
    1212if ( ! current_user_can( 'manage_options' ) ) 
    1313        wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) ); 
     
    5151        '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' 
    5252); 
    5353 
    54 include( './admin-header.php' ); 
     54include( ABSPATH . 'wp-admin/admin-header.php' ); 
    5555?> 
    5656 
    5757<div class="wrap"> 
     
    128128<?php submit_button(); ?> 
    129129</form> 
    130130</div> 
    131 <?php include( './admin-footer.php' ); ?> 
     131<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?> 
  • wp-admin/options-writing.php

     
    77 */ 
    88 
    99/** WordPress Administration Bootstrap */ 
    10 require_once('./admin.php'); 
     10require_once( dirname(__FILE__) . '/admin.php' ); 
    1111 
    1212if ( ! current_user_can( 'manage_options' ) ) 
    1313        wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) ); 
     
    2323        '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' 
    2424); 
    2525 
    26 include('./admin-header.php'); 
     26include( ABSPATH . 'wp-admin/admin-header.php' ); 
    2727?> 
    2828 
    2929<div class="wrap"> 
     
    169169</form> 
    170170</div> 
    171171 
    172 <?php include('./admin-footer.php') ?> 
     172<?php include( ABSPATH . 'wp-admin/admin-footer.php') ?> 
  • wp-admin/options.php

     
    1616 */ 
    1717 
    1818/** WordPress Administration Bootstrap */ 
    19 require_once('./admin.php'); 
     19require_once( dirname(__FILE__) . '/admin.php' ); 
    2020 
    2121$title = __('Settings'); 
    2222$this_file = 'options.php'; 
     
    162162        exit; 
    163163} 
    164164 
    165 include('./admin-header.php'); ?> 
     165include( ABSPATH . 'wp-admin/admin-header.php' ); ?> 
    166166 
    167167<div class="wrap"> 
    168168<?php screen_icon(); ?> 
     
    219219 
    220220 
    221221<?php 
    222 include('./admin-footer.php'); 
     222include( ABSPATH . 'wp-admin/admin-footer.php' ); 
    223223?> 
  • wp-admin/plugin-editor.php

     
    77 */ 
    88 
    99/** WordPress Administration Bootstrap */ 
    10 require_once('./admin.php'); 
     10require_once( dirname(__FILE__) . '/admin.php' ); 
    1111 
    1212if ( is_multisite() && ! is_network_admin() ) { 
    1313        wp_redirect( network_admin_url( 'plugin-editor.php' ) ); 
     
    261261<?php 
    262262        break; 
    263263} 
    264 include(ABSPATH . "wp-admin/admin-footer.php"); 
     264include( ABSPATH . 'wp-admin/admin-footer.php' ); 
  • wp-admin/plugin-install.php

     
    1010        define( 'IFRAME_REQUEST', true ); 
    1111 
    1212/** WordPress Administration Bootstrap */ 
    13 require_once('./admin.php'); 
     13require_once( dirname(__FILE__) . '/admin.php' ); 
    1414 
    1515if ( ! current_user_can('install_plugins') ) 
    1616        wp_die(__('You do not have sufficient permissions to install plugins on this site.')); 
  • wp-admin/plugins.php

     
    77 */ 
    88 
    99/** WordPress Administration Bootstrap */ 
    10 require_once('./admin.php'); 
     10require_once( dirname(__FILE__) . '/admin.php' ); 
    1111 
    1212if ( is_multisite() ) { 
    1313        $menu_perms = get_site_option( 'menu_items', array() ); 
  • wp-admin/post-new.php

     
    77 */ 
    88 
    99/** Load WordPress Administration Bootstrap */ 
    10 require_once('./admin.php'); 
     10require_once( dirname(__FILE__) . '/admin.php' ); 
    1111 
    1212if ( !isset($_GET['post_type']) ) 
    1313        $post_type = 'post'; 
     
    3838// Show post form. 
    3939$post = get_default_post_to_edit( $post_type, true ); 
    4040$post_ID = $post->ID; 
    41 include('edit-form-advanced.php'); 
    42 include('./admin-footer.php'); 
     41include( ABSPATH . 'wp-admin/edit-form-advanced.php' ); 
     42include( ABSPATH . 'wp-admin/admin-footer.php' ); 
    4343?> 
  • wp-admin/post.php

     
    99 */ 
    1010 
    1111/** WordPress Administration Bootstrap */ 
    12 require_once('./admin.php'); 
     12require_once( dirname(__FILE__) . '/admin.php' ); 
    1313 
    1414$parent_file = 'edit.php'; 
    1515$submenu_file = 'edit.php'; 
     
    184184                enqueue_comment_hotkeys_js(); 
    185185        } 
    186186 
    187         include('./edit-form-advanced.php'); 
     187        include( ABSPATH . 'wp-admin/edit-form-advanced.php' ); 
    188188 
    189189        break; 
    190190 
     
    273273        exit(); 
    274274        break; 
    275275} // end switch 
    276 include('./admin-footer.php'); 
     276include( ABSPATH . 'wp-admin/admin-footer.php' ); 
    277277?> 
  • wp-admin/press-this.php

     
    99define('IFRAME_REQUEST' , true); 
    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')); 
    1515 
  • wp-admin/profile.php

     
    1515define('IS_PROFILE_PAGE', true); 
    1616 
    1717/** Load User Editing Page */ 
    18 require_once('./user-edit.php'); 
     18require_once( dirname(__FILE__) . '/user-edit.php' ); 
    1919?> 
  • wp-admin/revision.php

     
    77 */ 
    88 
    99/** WordPress Administration Bootstrap */ 
    10 require_once('./admin.php'); 
     10require_once( dirname(__FILE__) . '/admin.php' ); 
    1111 
    1212wp_enqueue_script('list-revisions'); 
    1313 
     
    5151        // If we're comparing a revision to itself, redirect to the 'view' page for that revision or the edit page for that post 
    5252        if ( $left_revision->ID == $right_revision->ID ) { 
    5353                $redirect = get_edit_post_link( $left_revision->ID ); 
    54                 include( './js/revisions-js.php' ); 
     54                include( ABSPATH . 'wp-admin/js/revisions-js.php' ); 
    5555                break; 
    5656        } 
    5757 
     
    145145else 
    146146        $parent_file = $submenu_file = 'edit.php'; 
    147147 
    148 require_once( './admin-header.php' ); 
     148require_once( ABSPATH . 'wp-admin/admin-header.php' ); 
    149149 
    150150?> 
    151151 
     
    220220</div> 
    221221 
    222222<?php 
    223 require_once( './admin-footer.php' ); 
     223require_once( ABSPATH . 'wp-admin/admin-footer.php' ); 
  • wp-admin/theme-editor.php

     
    77 */ 
    88 
    99/** WordPress Administration Bootstrap */ 
    10 require_once('./admin.php'); 
     10require_once( dirname(__FILE__) . '/admin.php' ); 
    1111 
    1212if ( is_multisite() && ! is_network_admin() ) { 
    1313        wp_redirect( network_admin_url( 'theme-editor.php' ) ); 
     
    103103 
    104104default: 
    105105 
    106         require_once(ABSPATH . 'wp-admin/admin-header.php'); 
     106        require_once( ABSPATH . 'wp-admin/admin-header.php' ); 
    107107 
    108108        update_recently_edited($file); 
    109109 
     
    268268break; 
    269269} 
    270270 
    271 include(ABSPATH . "wp-admin/admin-footer.php"); 
     271include ( ABSPATH . 'wp-admin/admin-footer.php' ); 
  • wp-admin/theme-install.php

     
    1010        define( 'IFRAME_REQUEST', true ); 
    1111 
    1212/** WordPress Administration Bootstrap */ 
    13 require_once('./admin.php'); 
     13require_once( dirname(__FILE__) . '/admin.php' ); 
    1414 
    1515if ( ! current_user_can('install_themes') ) 
    1616        wp_die( __( 'You do not have sufficient permissions to install themes on this site.' ) ); 
  • wp-admin/themes.php

     
    77 */ 
    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') ) 
    1313        wp_die( __( 'Cheatin&#8217; uh?' ) ); 
     
    5454 
    5555endif; 
    5656 
    57 require_once('./admin-header.php'); 
     57require_once( ABSPATH . 'wp-admin/admin-header.php' ); 
    5858?> 
    5959 
    6060<?php if ( ! validate_current_theme() ) : ?> 
     
    135135<?php 
    136136if ( ! current_user_can( 'switch_themes' ) ) { 
    137137        echo '</div>'; 
    138         require( './admin-footer.php' ); 
     138        require( ABSPATH . 'wp-admin/admin-footer.php' ); 
    139139        exit; 
    140140} 
    141141?> 
     
    240240?> 
    241241</div> 
    242242 
    243 <?php require('./admin-footer.php'); ?> 
     243<?php require( ABSPATH . 'wp-admin/admin-footer.php' ); ?> 
  • wp-admin/tools.php

     
    77 */ 
    88 
    99/** WordPress Administration Bootstrap */ 
    10 require_once('./admin.php'); 
     10require_once( dirname(__FILE__) . '/admin.php' ); 
    1111 
    1212$title = __('Tools'); 
    1313 
     
    2020        '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' 
    2121); 
    2222 
    23 require_once('./admin-header.php'); 
     23require_once( ABSPATH . 'wp-admin/admin-header.php' ); 
    2424 
    2525?> 
    2626<div class="wrap"> 
     
    5555?> 
    5656</div> 
    5757<?php 
    58 include('./admin-footer.php'); 
     58include( ABSPATH . 'wp-admin/admin-footer.php' ); 
    5959?> 
  • wp-admin/update-core.php

     
    77 */ 
    88 
    99/** WordPress Administration Bootstrap */ 
    10 require_once('./admin.php'); 
     10require_once( dirname(__FILE__) . '/admin.php' ); 
    1111 
    1212if ( is_multisite() && ! is_network_admin() ) { 
    1313        wp_redirect( network_admin_url( 'update-core.php' ) ); 
  • wp-admin/update.php

     
    1010        define( 'IFRAME_REQUEST', true ); 
    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'; 
    1616 
  • wp-admin/upgrade.php

     
    1515define( 'WP_INSTALLING', true ); 
    1616 
    1717/** Load WordPress Bootstrap */ 
    18 require( '../wp-load.php' ); 
     18require( dirname(dirname(__FILE__)) . '/wp-load.php' ); 
    1919 
    2020timer_start(); 
    2121require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); 
  • wp-admin/upload.php

     
    77 */ 
    88 
    99/** WordPress Administration Bootstrap */ 
    10 require_once( './admin.php' ); 
     10require_once( dirname(__FILE__) . '/admin.php' ); 
    1111 
    1212if ( !current_user_can('upload_files') ) 
    1313        wp_die( __( 'You do not have permission to upload files.' ) ); 
     
    155155        '<p>' . __( '<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>' ) . '</p>' 
    156156); 
    157157 
    158 require_once('./admin-header.php'); 
     158require_once( ABSPATH . 'wp-admin/admin-header.php' ); 
    159159?> 
    160160 
    161161<div class="wrap"> 
     
    225225</div> 
    226226 
    227227<?php 
    228 include('./admin-footer.php'); 
     228include( ABSPATH . 'wp-admin/admin-footer.php' ); 
  • wp-admin/user-edit.php

     
    77 */ 
    88 
    99/** WordPress Administration Bootstrap */ 
    10 require_once('./admin.php'); 
     10require_once( dirname(__FILE__) . '/admin.php' ); 
    1111 
    1212wp_reset_vars(array('action', 'redirect', 'profile', 'user_id', 'wp_http_referer')); 
    1313 
  • wp-admin/user-new.php

     
    77 */ 
    88 
    99/** WordPress Administration Bootstrap */ 
    10 require_once('./admin.php'); 
     10require_once( dirname(__FILE__) . '/admin.php' ); 
    1111 
    1212if ( is_multisite() ) { 
    1313        if ( ! current_user_can( 'create_users' ) && ! current_user_can( 'promote_users' ) ) 
     
    153153wp_enqueue_script('wp-ajax-response'); 
    154154wp_enqueue_script('user-profile'); 
    155155 
    156 require_once ('admin-header.php'); 
     156require_once ( 'ABSPATH . 'wp-admin/admin-header.php' ); 
    157157 
    158158if ( isset($_GET['update']) ) { 
    159159        $messages = array(); 
     
    346346<?php } // current_user_can('create_users') ?> 
    347347</div> 
    348348<?php 
    349 include('./admin-footer.php'); 
     349include( ABSPATH . 'wp-admin/admin-footer.php' ); 
    350350?> 
  • wp-admin/user/index-extra.php

     
    77 * @since 3.1.0 
    88 */ 
    99 
    10 require_once( './admin.php' ); 
     10require_once( dirname(__FILE__) . '/admin.php' ); 
    1111 
    12 require( '../index-extra.php' ); 
     12require( ABSPATH . 'wp-admin/index-extra.php' ); 
  • wp-admin/user/index.php

     
    77 * @since 3.1.0 
    88 */ 
    99 
    10 require_once( './admin.php' ); 
     10require_once( dirname(__FILE__) . '/admin.php' ); 
    1111 
    12 require( '../index.php' ); 
     12require( ABSPATH . 'wp-admin/index.php' ); 
  • wp-admin/user/profile.php

     
    77 * @since 3.1.0 
    88 */ 
    99 
    10 require_once( './admin.php' ); 
     10require_once( dirname(__FILE__) . '/admin.php' ); 
    1111 
    12 require( '../profile.php' ); 
    13  No newline at end of file 
     12require( ABSPATH . 'wp-admin/profile.php' ); 
     13 No newline at end of file 
  • wp-admin/user/user-edit.php

     
    77 * @since 3.1.0 
    88 */ 
    99 
    10 require_once( './admin.php' ); 
     10require_once( dirname(__FILE__) . '/admin.php' ); 
    1111 
    12 require( '../user-edit.php' ); 
    13  No newline at end of file 
     12require( ABSPATH . 'wp-admin/user-edit.php' ); 
     13 No newline at end of file 
  • wp-admin/users.php

     
    77 */ 
    88 
    99/** WordPress Administration Bootstrap */ 
    10 require_once( './admin.php' ); 
     10require_once( dirname(__FILE__) . '/admin.php' ); 
    1111 
    1212if ( ! current_user_can( 'list_users' ) ) 
    1313        wp_die( __( 'Cheatin&#8217; uh?' ) ); 
     
    152152        else 
    153153                $userids = $_REQUEST['users']; 
    154154 
    155         include ('admin-header.php'); 
     155        include ( ABSPATH . 'wp-admin/admin-header.php' ); 
    156156?> 
    157157<form action="" method="post" name="updateusers" id="updateusers"> 
    158158<?php wp_nonce_field('delete-users') ?> 
     
    253253        else 
    254254                $userids = $_REQUEST['users']; 
    255255 
    256         include ('admin-header.php'); 
     256        include ( ABSPATH . 'wp-admin/admin-header.php' ); 
    257257?> 
    258258<form action="" method="post" name="updateusers" id="updateusers"> 
    259259<?php wp_nonce_field('remove-users') ?> 
     
    304304                wp_redirect( add_query_arg( 'paged', $total_pages ) ); 
    305305                exit; 
    306306        } 
    307         include('./admin-header.php'); 
     307        include( ABSPATH . 'wp-admin/admin-header.php' ); 
    308308 
    309309        $messages = array(); 
    310310        if ( isset($_GET['update']) ) : 
     
    395395 
    396396} // end of the $doaction switch 
    397397 
    398 include('./admin-footer.php'); 
     398include( ABSPATH . 'wp-admin/admin-footer.php' ); 
  • wp-admin/widgets.php

     
    77 */ 
    88 
    99/** WordPress Administration Bootstrap */ 
    10 require_once( './admin.php' ); 
     10require_once( dirname(__FILE__) . '/admin.php' ); 
    1111 
    1212/** WordPress Administration Widgets API */ 
    1313require_once(ABSPATH . 'wp-admin/includes/widgets.php'); 
     
    133133 
    134134if ( count($wp_registered_sidebars) == 1 ) { 
    135135        // If only "wp_inactive_widgets" is defined the theme has no sidebars, die. 
    136         require_once( './admin-header.php' ); 
     136        require_once( ABSPATH . 'wp-admin/admin-header.php' ); 
    137137?> 
    138138 
    139139        <div class="wrap"> 
     
    146146        </div> 
    147147 
    148148<?php 
    149         require_once( './admin-footer.php' ); 
     149        require_once( ABSPATH . 'wp-admin/admin-footer.php' ); 
    150150        exit; 
    151151} 
    152152 
     
    257257        $width = ' style="width:' . max($control['width'], 350) . 'px"'; 
    258258        $key = isset($_GET['key']) ? (int) $_GET['key'] : 0; 
    259259 
    260         require_once( './admin-header.php' ); ?> 
     260        require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?> 
    261261        <div class="wrap"> 
    262262        <?php screen_icon(); ?> 
    263263        <h2><?php echo esc_html( $title ); ?></h2> 
     
    324324        </div> 
    325325        </div> 
    326326<?php 
    327         require_once( './admin-footer.php' ); 
     327        require_once( ABSPATH . 'wp-admin/admin-footer.php' ); 
    328328        exit; 
    329329} 
    330330 
     
    337337        __('Error in displaying the widget settings form.') 
    338338); 
    339339 
    340 require_once( './admin-header.php' ); ?> 
     340require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?> 
    341341 
    342342<div class="wrap"> 
    343343<?php screen_icon(); ?> 
     
    410410 
    411411<?php 
    412412do_action( 'sidebar_admin_page' ); 
    413 require_once( './admin-footer.php' ); 
     413require_once( ABSPATH . 'wp-admin/admin-footer.php' ); 
  • wp-app.php

     
    1313define('APP_REQUEST', true); 
    1414 
    1515/** Set up WordPress environment */ 
    16 require_once('./wp-load.php'); 
     16require_once( dirname(__FILE__) . '/wp-load.php' ); 
    1717 
    1818/** Atom Publishing Protocol Class */ 
    1919require_once(ABSPATH . WPINC . '/atomlib.php'); 
  • wp-atom.php

     
    66 * @package WordPress 
    77 */ 
    88 
    9 require( './wp-load.php' ); 
     9require( dirname(__FILE__) . '/wp-load.php' ); 
    1010wp_redirect( get_bloginfo( 'atom_url' ), 301 ); 
    1111exit; 
    1212?> 
  • wp-commentsrss2.php

     
    66 * @package WordPress 
    77 */ 
    88 
    9 require( './wp-load.php' ); 
     9require( dirname(__FILE__) . '/wp-load.php' ); 
    1010wp_redirect( get_bloginfo( 'comments_rss2_url' ), 301 ); 
    1111exit; 
    1212?> 
  • wp-cron.php

     
    2323 
    2424if ( !defined('ABSPATH') ) { 
    2525        /** Set up WordPress environment */ 
    26         require_once('./wp-load.php'); 
     26        require_once( dirname(__FILE__) . '/wp-load.php' ); 
    2727} 
    2828 
    2929if ( false === $crons = _get_cron_array() ) 
  • wp-feed.php

     
    66 * @package WordPress 
    77 */ 
    88 
    9 require( './wp-load.php' ); 
     9require( dirname(__FILE__) . '/wp-load.php' ); 
    1010wp_redirect( get_bloginfo( get_default_feed() . '_url' ), 301 ); 
    1111exit; 
    1212?> 
  • wp-includes/js/tinymce/wp-mce-help.php

     
    66 */ 
    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?> 
    1212<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
  • wp-links-opml.php

     
    1212 * @package WordPress 
    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); 
    1818$link_cat = ''; 
  • wp-rdf.php

     
    66 * @package WordPress 
    77 */ 
    88 
    9 require( './wp-load.php' ); 
     9require( dirname(__FILE__) . '/wp-load.php' ); 
    1010wp_redirect( get_bloginfo( 'rdf_url' ), 301 ); 
    1111exit; 
    1212?> 
  • wp-register.php

     
    99 * @deprecated Use wp_register() to create a registration link instead 
    1010 */ 
    1111 
    12 require('./wp-load.php'); 
     12require( dirname(__FILE__) . '/wp-load.php' ); 
    1313wp_redirect( site_url('wp-login.php?action=register') ); 
    1414exit; 
    1515?> 
  • wp-rss.php

     
    66 * @package WordPress 
    77 */ 
    88 
    9 require( './wp-load.php' ); 
     9require( dirname(__FILE__) . '/wp-load.php' ); 
    1010wp_redirect( get_bloginfo( 'rss_url' ), 301 ); 
    1111exit; 
    1212?> 
  • wp-rss2.php

     
    66 * @package WordPress 
    77 */ 
    88 
    9 require( './wp-load.php' ); 
     9require( dirname(__FILE__) . '/wp-load.php' ); 
    1010wp_redirect( get_bloginfo( 'rss2_url' ), 301 ); 
    1111exit; 
    1212?> 
  • wp-signup.php

     
    55 
    66add_action( 'wp_head', 'signuppageheaders' ) ; 
    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 ) { 
    1111        wp_redirect( network_home_url() ); 
  • wp-trackback.php

     
    66 */ 
    77 
    88if (empty($wp)) { 
    9         require_once('./wp-load.php'); 
     9        require_once( dirname(__FILE__) . '/wp-load.php' ); 
    1010        wp( array( 'tb' => '1' ) ); 
    1111} 
    1212 
  • xmlrpc.php

     
    2626        $HTTP_RAW_POST_DATA = trim($HTTP_RAW_POST_DATA); 
    2727 
    2828/** Include the bootstrap for setting up WordPress environment */ 
    29 include('./wp-load.php'); 
     29include( dirname(__FILE__) . '/wp-load.php' ); 
    3030 
    3131if ( isset( $_GET['rsd'] ) ) { // http://archipelago.phrasewise.com/rsd 
    3232header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true);