WordPress.org

Make WordPress Core

Ticket #17092: 17092.001.patch

File 17092.001.patch, 65.3 KB (added by hakre, 5 years ago)

update to remove superfluous dirname() calls.

  • index.php

    diff --git index.php index.php
    index 1e3364a..dd3d554 100644
     
    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' );
  • wp-activate.php

    diff --git wp-activate.php wp-activate.php
    index 6a474b1..a446de3 100644
    define( 'WP_INSTALLING', true ); 
    1111/** Sets up the WordPress Environment. */
    1212require( dirname(__FILE__) . '/wp-load.php' );
    1313
    14 require( './wp-blog-header.php' );
     14require( dirname( __FILE__ ) . '/wp-blog-header.php' );
    1515
    1616if ( !is_multisite() ) {
    1717        wp_redirect( site_url( '/wp-login.php?action=register' ) );
    get_header(); 
    116116        var key_input = document.getElementById('key');
    117117        key_input && key_input.focus();
    118118</script>
    119 <?php get_footer(); ?>
    120  No newline at end of file
     119<?php get_footer(); ?>
  • wp-admin/about.php

    diff --git wp-admin/about.php wp-admin/about.php
    index 8b155d2..0c83f39 100644
     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once( './admin.php' );
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212$title = __( 'About' );
    1313
  • wp-admin/admin-header.php

    diff --git wp-admin/admin-header.php wp-admin/admin-header.php
    index 00ad299..10ae1e9 100644
     
    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
    1313// In case admin-header.php is included in a function.
    1414global $title, $hook_suffix, $current_screen, $wp_locale, $pagenow, $wp_version,
  • wp-admin/admin-post.php

    diff --git wp-admin/admin-post.php wp-admin/admin-post.php
    index f4af998..0009c3d 100644
    define('WP_ADMIN', true); 
    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

    diff --git wp-admin/async-upload.php wp-admin/async-upload.php
    index 296342e..3a24b52 100644
    define('WP_ADMIN', true); 
    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
    1616if ( ! ( isset( $_REQUEST['action'] ) && 'upload-attachment' == $_REQUEST['action'] ) ) {
    1717        // Flash often fails to send cookies with the POST or upload, so we need to pass it in GET or POST instead
    if ( ! ( isset( $_REQUEST['action'] ) && 'upload-attachment' == $_REQUEST['actio 
    2424        unset($current_user);
    2525}
    2626
    27 require_once('./admin.php');
     27require_once( ABSPATH . 'wp-admin/admin.php' );
    2828
    2929if ( !current_user_can('upload_files') )
    3030        wp_die(__('You do not have permission to upload files.'));
  • wp-admin/comment.php

    diff --git wp-admin/comment.php wp-admin/comment.php
    index de5483e..c5b1301 100644
     
    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';
    if ( isset( $_GET['dt'] ) ) { 
    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
    case 'editcomment' : 
    6060        );
    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'] );
    6666
    case 'editcomment' : 
    7575
    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;
    8181
    case 'spam' : 
    104104                die();
    105105        }
    106106
    107         require_once('./admin-header.php');
     107        require_once( ABSPATH . 'wp-admin/admin-header.php' );
    108108
    109109        $formaction    = $action . 'comment';
    110110        $nonce_action  = 'approve' == $action ? 'approve-comment_' : 'delete-comment_';
    default: 
    291291
    292292} // end switch
    293293
    294 include('./admin-footer.php');
     294include( ABSPATH . 'wp-admin/admin-footer.php' );
  • wp-admin/credits.php

    diff --git wp-admin/credits.php wp-admin/credits.php
    index 7052357..3d26534 100644
     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once( './admin.php' );
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212$title = __( 'Credits' );
    1313
  • wp-admin/customize.php

    diff --git wp-admin/customize.php wp-admin/customize.php
    index a9e05c2..6f33708 100644
     
    99
    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?' ) );
    1515
  • wp-admin/edit-comments.php

    diff --git wp-admin/edit-comments.php wp-admin/edit-comments.php
    index 8892709..8f932b0 100644
     
    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
    get_current_screen()->set_help_sidebar( 
    136136        '<p>' . __( '<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>' ) . '</p>'
    137137);
    138138
    139 require_once('./admin-header.php');
     139require_once( ABSPATH . 'wp-admin/admin-header.php' );
    140140?>
    141141
    142142<div class="wrap">
    if ( isset($_REQUEST['approved']) || isset($_REQUEST['deleted']) || isset($_REQU 
    252252<?php
    253253wp_comment_reply('-1', true, 'detail');
    254254wp_comment_trashnotice();
    255 include('./admin-footer.php'); ?>
     255include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
  • wp-admin/edit-form-advanced.php

    diff --git wp-admin/edit-form-advanced.php wp-admin/edit-form-advanced.php
    index f3a65e5..a495ab7 100644
    if ( $autosave && mysql2date( 'U', $autosave->post_modified_gmt, false ) > mysql 
    107107$post_type_object = get_post_type_object($post_type);
    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
    113113$publish_callback_args = null;
    if ( 'post' == $post_type ) { 
    307307        ) );
    308308}
    309309
    310 require_once('./admin-header.php');
     310require_once( ABSPATH . 'wp-admin/admin-header.php' );
    311311?>
    312312
    313313<div class="wrap">
  • wp-admin/edit-link-form.php

    diff --git wp-admin/edit-link-form.php wp-admin/edit-link-form.php
    index 0aca6e7..97b5aef 100644
    if ( ! empty($link_id) ) { 
    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', null, 'side', 'core');
    2828add_meta_box('linkcategorydiv', __('Categories'), 'link_categories_meta_box', null, 'normal', 'core');
    get_current_screen()->set_help_sidebar( 
    5454        '<p>' . __( '<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>' ) . '</p>'
    5555);
    5656
    57 require_once ('admin-header.php');
     57require_once( ABSPATH . 'wp-admin/admin-header.php' );
    5858?>
    5959
    6060<div class="wrap">
  • wp-admin/edit-tags.php

    diff --git wp-admin/edit-tags.php wp-admin/edit-tags.php
    index 8375202..912d125 100644
     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once('./admin.php');
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212if ( ! $taxnow )
    1313        wp_die( __( 'Invalid taxonomy' ) );
    case 'edit': 
    126126        $tag = get_term( $tag_ID, $taxonomy, OBJECT, 'edit' );
    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;
    133133
    if ( 'category' == $taxonomy || 'link_category' == $taxonomy || 'post_tag' == $t 
    247247        unset( $help );
    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) )
    253253        wp_die( __('You are not allowed to edit this item.') );
    try{document.forms.addtag['tag-name'].focus();}catch(e){} 
    417417break;
    418418}
    419419
    420 include('./admin-footer.php');
     420include( ABSPATH . 'wp-admin/admin-footer.php' );
  • wp-admin/edit.php

    diff --git wp-admin/edit.php wp-admin/edit.php
    index 65fd034..1d1a53a 100644
     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once( './admin.php' );
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212if ( ! $typenow )
    1313        wp_die( __( 'Invalid post type' ) );
    if ( 'post' == $post_type ) { 
    224224
    225225add_screen_option( 'per_page', array( 'label' => $title, 'default' => 20, 'option' => 'edit_' . $post_type . '_per_page' ) );
    226226
    227 require_once('./admin-header.php');
     227require_once( ABSPATH . 'wp-admin/admin-header.php' );
    228228?>
    229229<div class="wrap">
    230230<?php screen_icon(); ?>
    if ( $wp_list_table->has_items() ) 
    297297</div>
    298298
    299299<?php
    300 include('./admin-footer.php');
     300include( ABSPATH . 'wp-admin/admin-footer.php' );
  • wp-admin/export.php

    diff --git wp-admin/export.php wp-admin/export.php
    index fc491b3..8526898 100644
     
    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
    1919/**
    if ( isset( $_GET['download'] ) ) { 
    100100        die();
    101101}
    102102
    103 require_once ('admin-header.php');
     103require_once( ABSPATH . 'wp-admin/admin-header.php' );
    104104
    105105function export_date_options( $post_type = 'post' ) {
    106106        global $wpdb, $wp_locale;
    function export_date_options( $post_type = 'post' ) { 
    217217</form>
    218218</div>
    219219
    220 <?php include('admin-footer.php'); ?>
     220<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
  • wp-admin/freedoms.php

    diff --git wp-admin/freedoms.php wp-admin/freedoms.php
    index d7accd1..22d7a0f 100644
     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once( './admin.php' );
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212$title = __( 'Freedoms' );
    1313
  • wp-admin/import.php

    diff --git wp-admin/import.php wp-admin/import.php
    index 72b9142..076f0d1 100644
     
    99define('WP_LOAD_IMPORTERS', true);
    1010
    1111/** Load WordPress Bootstrap */
    12 require_once ('admin.php');
     12require_once( dirname( __FILE__ ) . '/admin.php' );
    1313
    1414if ( !current_user_can('import') )
    1515        wp_die(__('You do not have sufficient permissions to import content in this site.'));
    if ( ! empty( $_GET['invalid'] ) && isset( $popular_importers[ $_GET['invalid'] 
    4747add_thickbox();
    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?>
    5353
    if ( current_user_can('install_plugins') ) 
    130130
    131131<?php
    132132
    133 include ('admin-footer.php');
     133include( ABSPATH . 'wp-admin/admin-footer.php' );
  • wp-admin/index.php

    diff --git wp-admin/index.php wp-admin/index.php
    index b476267..83803aa 100644
     
    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

    diff --git wp-admin/install.php wp-admin/install.php
    index 71d59a9..33ffc74 100644
    define( 'WP_INSTALLING', true ); 
    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'] ) ? (int) $_GET['step'] : 0;
    4545
  • wp-admin/link-add.php

    diff --git wp-admin/link-add.php wp-admin/link-add.php
    index 6f9c567..d15fb93 100644
     
    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.'));
    if ( wp_is_mobile() ) 
    2424        wp_enqueue_script( 'jquery-touch-punch' );
    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' );
  • wp-admin/link-manager.php

    diff --git wp-admin/link-manager.php wp-admin/link-manager.php
    index 3154f8e..cbcf689 100644
     
    77 */
    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.' ) );
    1313
    get_current_screen()->set_help_sidebar( 
    6161        '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
    6262);
    6363
    64 include_once ('./admin-header.php');
     64include_once( ABSPATH . 'wp-admin/admin-header.php' );
    6565
    6666if ( ! current_user_can('manage_links') )
    6767        wp_die(__("You do not have sufficient permissions to edit the links for this site."));
    if ( isset($_REQUEST['deleted']) ) { 
    9797</div>
    9898
    9999<?php
    100 include('./admin-footer.php');
     100include( ABSPATH . 'wp-admin/admin-footer.php' );
  • wp-admin/link.php

    diff --git wp-admin/link.php wp-admin/link.php
    index e696d45..1b27ce7 100644
     
    1010 */
    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' ) );
    1616
    switch ($action) { 
    111111                if (!$link = get_link_to_edit($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
    118118        default :
  • wp-admin/maint/repair.php

    diff --git wp-admin/maint/repair.php wp-admin/maint/repair.php
    index 7cc13e1..de85dba 100644
     
    77 */
    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' );
    1313?>
  • wp-admin/media-new.php

    diff --git wp-admin/media-new.php wp-admin/media-new.php
    index e428811..d8f8b63 100644
     
    1010 */
    1111
    1212/** Load WordPress Administration Bootstrap */
    13 require_once('./admin.php');
     13require_once( dirname( __FILE__ ) . '/admin.php' );
    1414
    1515if (!current_user_can('upload_files'))
    1616        wp_die(__('You do not have permission to upload files.'));
  • wp-admin/media-upload.php

    diff --git wp-admin/media-upload.php wp-admin/media-upload.php
    index 96af66b..19c4f33 100644
    if ( ! isset( $_GET['inline'] ) ) 
    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.'));
  • wp-admin/media.php

    diff --git wp-admin/media.php wp-admin/media.php
    index 15d4323..c9f0348 100644
     
    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';
    case 'edit' : 
    8484        '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
    8585        );
    8686
    87         require( './admin-header.php' );
     87        require( ABSPATH . 'wp-admin/admin-header.php' );
    8888
    8989        $parent_file = 'upload.php';
    9090        $message = '';
    if ( current_user_can( 'upload_files' ) ) { ?> 
    136136
    137137<?php
    138138
    139         require( './admin-footer.php' );
     139        require( ABSPATH . 'wp-admin/admin-footer.php' );
    140140
    141141        exit;
    142142
  • wp-admin/moderation.php

    diff --git wp-admin/moderation.php wp-admin/moderation.php
    index 9129795..13a9b4a 100644
     
    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;
  • wp-admin/ms-admin.php

    diff --git wp-admin/ms-admin.php wp-admin/ms-admin.php
    index fe5e19b..35e21e9 100644
     
    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

    diff --git wp-admin/ms-delete-site.php wp-admin/ms-delete-site.php
    index 7d772c2..a5921a7 100644
     
    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.' ) );
    $blog = get_blog_details(); 
    2929
    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">';
    3535screen_icon();
    Webmaster 
    8181}
    8282echo '</div>';
    8383
    84 include( './admin-footer.php' );
     84include( ABSPATH . 'wp-admin/admin-footer.php' );
  • wp-admin/ms-edit.php

    diff --git wp-admin/ms-edit.php wp-admin/ms-edit.php
    index 6e56e02..5c405e6 100644
     
    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

    diff --git wp-admin/ms-options.php wp-admin/ms-options.php
    index 784ac24..764e937 100644
     
    77 * @since 3.0.0
    88 */
    99
    10 require_once( './admin.php' );
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    12 wp_redirect( network_admin_url('settings.php') );
    13  No newline at end of file
     12wp_redirect( network_admin_url('settings.php') );
  • wp-admin/ms-sites.php

    diff --git wp-admin/ms-sites.php wp-admin/ms-sites.php
    index 00502c9..4f2f2a9 100644
     
    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

    diff --git wp-admin/ms-themes.php wp-admin/ms-themes.php
    index ad873ba..1a03c66 100644
     
    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

    diff --git wp-admin/ms-upgrade-network.php wp-admin/ms-upgrade-network.php
    index 3d36a2c..ebf5d27 100644
     
    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

    diff --git wp-admin/ms-users.php wp-admin/ms-users.php
    index a3be929..cc89815 100644
     
    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

    diff --git wp-admin/my-sites.php wp-admin/my-sites.php
    index 2ef4ca7..6107358 100644
     
    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.' ) );
    get_current_screen()->set_help_sidebar( 
    4949        '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
    5050);
    5151
    52 require_once( './admin-header.php' );
     52require_once( ABSPATH . 'wp-admin/admin-header.php' );
    5353
    5454if ( $updated ) { ?>
    5555        <div id="message" class="updated"><p><strong><?php _e( 'Settings saved.' ); ?></strong></p></div>
    else : 
    117117<?php endif; ?>
    118118        </div>
    119119<?php
    120 include( './admin-footer.php' );
     120include( ABSPATH . 'wp-admin/admin-footer.php' );
  • wp-admin/nav-menus.php

    diff --git wp-admin/nav-menus.php wp-admin/nav-menus.php
    index 549d03b..ba84fc5 100644
     
    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' );
    get_current_screen()->set_help_sidebar( 
    529529);
    530530
    531531// Get the admin header
    532 require_once( './admin-header.php' );
     532require_once( ABSPATH . 'wp-admin/admin-header.php' );
    533533?>
    534534<div class="wrap">
    535535        <?php screen_icon(); ?>
    require_once( './admin-header.php' ); 
    761761        </div><!-- /#nav-menus-frame -->
    762762        <?php endif; ?>
    763763</div><!-- /.wrap-->
    764 <?php include( './admin-footer.php' ); ?>
     764<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
  • wp-admin/network.php

    diff --git wp-admin/network.php wp-admin/network.php
    index c3dea68..cdef7f4 100644
     
    1313define( 'WP_INSTALLING_NETWORK', 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/about.php

    diff --git wp-admin/network/about.php wp-admin/network/about.php
    index e8bbe99..4ad5412 100644
     
    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( '../about.php' );
    17  No newline at end of file
     16require( ABSPATH . 'wp-admin/about.php' );
  • wp-admin/network/credits.php

    diff --git wp-admin/network/credits.php wp-admin/network/credits.php
    index 82caa3a..3d3ae14 100644
     
    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( '../credits.php' );
    17  No newline at end of file
     16require( ABSPATH . 'wp-admin/credits.php' );
  • wp-admin/network/edit.php

    diff --git wp-admin/network/edit.php wp-admin/network/edit.php
    index e76f258..b1ae4bb 100644
     
    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/freedoms.php

    diff --git wp-admin/network/freedoms.php wp-admin/network/freedoms.php
    index a15a4c3..da7f86b 100644
     
    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( '../freedoms.php' );
    17  No newline at end of file
     16require( ABSPATH . 'wp-admin/freedoms.php' );
  • wp-admin/network/index.php

    diff --git wp-admin/network/index.php wp-admin/network/index.php
    index 96c2c24..e5cec97 100644
     
    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' );
    add_thickbox(); 
    6262
    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?>
    6868
    require_once( '../admin-header.php' ); 
    7979
    8080</div><!-- wrap -->
    8181
    82 <?php include( '../admin-footer.php' ); ?>
     82<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
  • wp-admin/network/plugin-editor.php

    diff --git wp-admin/network/plugin-editor.php wp-admin/network/plugin-editor.php
    index 8850aa8..9af590c 100644
     
    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

    diff --git wp-admin/network/plugin-install.php wp-admin/network/plugin-install.php
    index 5c6243f..a8a1c17 100644
    if ( isset( $_GET['tab'] ) && ( 'plugin-information' == $_GET['tab'] ) ) 
    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' );
  • wp-admin/network/plugins.php

    diff --git wp-admin/network/plugins.php wp-admin/network/plugins.php
    index 514a22b..e997060 100644
     
    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' );
  • wp-admin/network/profile.php

    diff --git wp-admin/network/profile.php wp-admin/network/profile.php
    index c100e68..df6b782 100644
     
    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' );
  • wp-admin/network/settings.php

    diff --git wp-admin/network/settings.php wp-admin/network/settings.php
    index e745694..4c8706e 100644
     
    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.' ) );
    if ( $_POST ) { 
    7272        exit();
    7373}
    7474
    75 include( '../admin-header.php' );
     75include( ABSPATH . 'wp-admin/admin-header.php' );
    7676
    7777if ( isset( $_GET['updated'] ) ) {
    7878        ?><div id="message" class="updated"><p><?php _e( 'Options saved.' ) ?></p></div><?php
    if ( isset( $_GET['updated'] ) ) { 
    301301        </form>
    302302</div>
    303303
    304 <?php include( '../admin-footer.php' ); ?>
     304<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
  • wp-admin/network/setup.php

    diff --git wp-admin/network/setup.php wp-admin/network/setup.php
    index e5d5880..3593899 100644
     
    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' );
  • wp-admin/network/site-info.php

    diff --git wp-admin/network/site-info.php wp-admin/network/site-info.php
    index 7dd6aeb..bca71e0 100644
     
    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.' ) );
    $title = sprintf( __('Edit Site: %s'), $site_url_no_http ); 
    9191$parent_file = 'sites.php';
    9292$submenu_file = 'sites.php';
    9393
    94 require('../admin-header.php');
     94require( ABSPATH . 'wp-admin/admin-header.php' );
    9595
    9696?>
    9797
    if ( ! empty( $messages ) ) { 
    177177
    178178</div>
    179179<?php
    180 require('../admin-footer.php');
     180require( ABSPATH . 'wp-admin/admin-footer.php' );
  • wp-admin/network/site-new.php

    diff --git wp-admin/network/site-new.php wp-admin/network/site-new.php
    index 9fc5eef..df98d95 100644
     
    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.' ) );
    if ( isset($_GET['update']) ) { 
    107107$title = __('Add New Site');
    108108$parent_file = 'sites.php';
    109109
    110 require('../admin-header.php');
     110require( ABSPATH . 'wp-admin/admin-header.php' );
    111111
    112112?>
    113113
    if ( ! empty( $messages ) ) { 
    150150        </form>
    151151</div>
    152152<?php
    153 require('../admin-footer.php');
     153require( ABSPATH . 'wp-admin/admin-footer.php' );
  • wp-admin/network/site-settings.php

    diff --git wp-admin/network/site-settings.php wp-admin/network/site-settings.php
    index c3aec75..39a2af8 100644
     
    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.' ) );
    $title = sprintf( __('Edit Site: %s'), $site_url_no_http ); 
    7777$parent_file = 'sites.php';
    7878$submenu_file = 'sites.php';
    7979
    80 require('../admin-header.php');
     80require( ABSPATH . 'wp-admin/admin-header.php' );
    8181
    8282?>
    8383
    if ( ! empty( $messages ) ) { 
    152152
    153153</div>
    154154<?php
    155 require('../admin-footer.php');
     155require( ABSPATH . 'wp-admin/admin-footer.php' );
  • wp-admin/network/site-themes.php

    diff --git wp-admin/network/site-themes.php wp-admin/network/site-themes.php
    index b47a0c6..ec8fc7d 100644
     
    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.' ) );
    $title = sprintf( __('Edit Site: %s'), $site_url_no_http ); 
    132132$parent_file = 'sites.php';
    133133$submenu_file = 'sites.php';
    134134
    135 require('../admin-header.php'); ?>
     135require( ABSPATH . 'wp-admin/admin-header.php' ); ?>
    136136
    137137<div class="wrap">
    138138<?php screen_icon('ms-admin'); ?>
  • wp-admin/network/site-users.php

    diff --git wp-admin/network/site-users.php wp-admin/network/site-users.php
    index 0c7a1c7..62c6212 100644
     
    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.' ) );
    $submenu_file = 'sites.php'; 
    167167if ( ! wp_is_large_network( 'users' ) && apply_filters( 'show_network_site_users_add_existing_form', true ) )
    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'>
    173173/* <![CDATA[ */
    endif; ?> 
    307307<?php endif; ?>
    308308</div>
    309309<?php
    310 require('../admin-footer.php');
     310require( ABSPATH . 'wp-admin/admin-footer.php' );
  • wp-admin/network/sites.php

    diff --git wp-admin/network/sites.php wp-admin/network/sites.php
    index 93341c3..c5d353a 100644
     
    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.' ) );
    if ( isset( $_GET['updated'] ) ) { 
    225225
    226226$wp_list_table->prepare_items();
    227227
    228 require_once( '../admin-header.php' );
     228require_once( ABSPATH . 'wp-admin/admin-header.php' );
    229229?>
    230230
    231231<div class="wrap">
    require_once( '../admin-header.php' ); 
    254254</div>
    255255<?php
    256256
    257 require_once( '../admin-footer.php' ); ?>
     257require_once( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
  • wp-admin/network/theme-editor.php

    diff --git wp-admin/network/theme-editor.php wp-admin/network/theme-editor.php
    index f6ac9c2..621c506 100644
     
    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' );
  • wp-admin/network/theme-install.php

    diff --git wp-admin/network/theme-install.php wp-admin/network/theme-install.php
    index bc4e626..c666eaf 100644
    if ( isset( $_GET['tab'] ) && ( 'theme-information' == $_GET['tab'] ) ) 
    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' );
  • wp-admin/network/themes.php

    diff --git wp-admin/network/themes.php wp-admin/network/themes.php
    index 711b44e..264f90e 100644
     
    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

    diff --git wp-admin/network/update-core.php wp-admin/network/update-core.php
    index d4f9c76..3d2825a 100644
     
    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' );
  • wp-admin/network/update.php

    diff --git wp-admin/network/update.php wp-admin/network/update.php
    index b2c6177..c90098b 100644
    if ( isset( $_GET['action'] ) && in_array( $_GET['action'], array( 'update-selec 
    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

    diff --git wp-admin/network/upgrade.php wp-admin/network/upgrade.php
    index 7415654..6a09aa5 100644
     
    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.' ) );
    get_current_screen()->set_help_sidebar( 
    3333        '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
    3434);
    3535
    36 require_once('../admin-header.php');
     36require_once( ABSPATH . 'wp-admin/admin-header.php' );
    3737
    3838if ( ! current_user_can( 'manage_network' ) )
    3939        wp_die( __( 'You do not have permission to access this page.' ) );
    switch ( $action ) { 
    9696?>
    9797</div>
    9898
    99 <?php include('../admin-footer.php'); ?>
     99<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
  • wp-admin/network/user-edit.php

    diff --git wp-admin/network/user-edit.php wp-admin/network/user-edit.php
    index 0b2cfd2..effaaf8 100644
     
    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' );
  • wp-admin/network/user-new.php

    diff --git wp-admin/network/user-new.php wp-admin/network/user-new.php
    index 316fffe..6d09b30 100644
     
    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.' ) );
    if ( isset($_GET['update']) ) { 
    6666$title = __('Add New User');
    6767$parent_file = 'users.php';
    6868
    69 require('../admin-header.php'); ?>
     69require( ABSPATH . 'wp-admin/admin-header.php' ); ?>
    7070
    7171<div class="wrap">
    7272<?php screen_icon(); ?>
    if ( isset( $add_user_errors ) && is_wp_error( $add_user_errors ) ) { ?> 
    104104        </form>
    105105</div>
    106106<?php
    107 require('../admin-footer.php');
     107require( ABSPATH . 'wp-admin/admin-footer.php' );
  • wp-admin/network/users.php

    diff --git wp-admin/network/users.php wp-admin/network/users.php
    index 1318355..415b0c2 100644
     
    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.' ) );
    if ( isset( $_GET['action'] ) ) { 
    101101                                $_POST['allusers'] = array( $id ); // confirm_delete_users() can only handle with arrays
    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' ) );
    111111                        }
    if ( isset( $_GET['action'] ) ) { 
    130130                                                                        wp_die( __( 'You do not have permission to access this page.' ) );
    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;
    140140
    get_current_screen()->set_help_sidebar( 
    245245        '<p>' . __('<a href="http://wordpress.org/support/forum/multisite/" target="_blank">Support Forums</a>') . '</p>'
    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'] ) ) {
    251251        ?>
    if ( isset( $_REQUEST['updated'] ) && $_REQUEST['updated'] == 'true' && ! empty( 
    296296        </form>
    297297</div>
    298298
    299 <?php require_once( '../admin-footer.php' ); ?>
     299<?php require_once( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
  • wp-admin/options-discussion.php

    diff --git wp-admin/options-discussion.php wp-admin/options-discussion.php
    index 6e8d79f..9c8e4cb 100644
     
    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.' ) );
    get_current_screen()->set_help_sidebar( 
    2828        '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
    2929);
    3030
    31 include('./admin-header.php');
     31include( ABSPATH . 'wp-admin/admin-header.php' );
    3232?>
    3333
    3434<div class="wrap">
    echo apply_filters('default_avatar_select', $avatar_list); 
    249249</form>
    250250</div>
    251251
    252 <?php include('./admin-footer.php'); ?>
     252<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
  • wp-admin/options-general.php

    diff --git wp-admin/options-general.php wp-admin/options-general.php
    index fdae33a..9f29357 100644
     
    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.' ) );
    get_current_screen()->set_help_sidebar( 
    8080        '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
    8181);
    8282
    83 include('./admin-header.php');
     83include( ABSPATH . 'wp-admin/admin-header.php' );
    8484?>
    8585
    8686<div class="wrap">
    endfor; 
    324324
    325325</div>
    326326
    327 <?php include('./admin-footer.php') ?>
     327<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
  • wp-admin/options-media.php

    diff --git wp-admin/options-media.php wp-admin/options-media.php
    index 8ba2371..f035c72 100644
     
    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.' ) );
    get_current_screen()->set_help_sidebar( 
    3535        '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
    3636);
    3737
    38 include('./admin-header.php');
     38include( ABSPATH . 'wp-admin/admin-header.php' );
    3939
    4040?>
    4141
    if ( get_option('upload_url_path') || ( get_option('upload_path') != 'wp-content 
    134134
    135135</div>
    136136
    137 <?php include('./admin-footer.php'); ?>
     137<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
  • wp-admin/options-permalink.php

    diff --git wp-admin/options-permalink.php wp-admin/options-permalink.php
    index d086fdc..ba1d6a2 100644
     
    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.' ) );
    printf( __('If you like, you may enter custom structures for your category and t 
    282282
    283283</div>
    284284
    285 <?php require('./admin-footer.php'); ?>
     285<?php require( dirname( __FILE__ ) . '/admin-footer.php' ); ?>
  • wp-admin/options-reading.php

    diff --git wp-admin/options-reading.php wp-admin/options-reading.php
    index 3ca10df..3302fb5 100644
     
    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.' ) );
    get_current_screen()->set_help_sidebar( 
    7272        '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
    7373);
    7474
    75 include( './admin-header.php' );
     75include( ABSPATH . 'wp-admin/admin-header.php' );
    7676?>
    7777
    7878<div class="wrap">
    else : 
    167167<?php submit_button(); ?>
    168168</form>
    169169</div>
    170 <?php include( './admin-footer.php' ); ?>
     170<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
  • wp-admin/options-writing.php

    diff --git wp-admin/options-writing.php wp-admin/options-writing.php
    index 8015bae..d13f4a3 100644
     
    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.' ) );
    get_current_screen()->set_help_sidebar( 
    5050        '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
    5151);
    5252
    53 include('./admin-header.php');
     53include( ABSPATH . 'wp-admin/admin-header.php' );
    5454?>
    5555
    5656<div class="wrap">
    wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'default_email_categor 
    178178</form>
    179179</div>
    180180
    181 <?php include('./admin-footer.php') ?>
     181<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
  • wp-admin/options.php

    diff --git wp-admin/options.php wp-admin/options.php
    index 80a0719..8be1161 100644
     
    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';
    if ( 'update' == $action ) { 
    172172        exit;
    173173}
    174174
    175 include('./admin-header.php'); ?>
     175include( ABSPATH . 'wp-admin/admin-header.php' ); ?>
    176176
    177177<div class="wrap">
    178178<?php screen_icon(); ?>
    endforeach; 
    228228</div>
    229229
    230230<?php
    231 include('./admin-footer.php');
     231include( ABSPATH . 'wp-admin/admin-footer.php' );
  • wp-admin/plugin-editor.php

    diff --git wp-admin/plugin-editor.php wp-admin/plugin-editor.php
    index 2167c1a..6571a63 100644
     
    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' ) );
  • wp-admin/plugin-install.php

    diff --git wp-admin/plugin-install.php wp-admin/plugin-install.php
    index 25470d6..6ed2d28 100644
    if ( !defined( 'IFRAME_REQUEST' ) && isset( $_GET['tab'] ) && ( 'plugin-informat 
    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

    diff --git wp-admin/plugins.php wp-admin/plugins.php
    index c371b64..b587c66 100644
     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once('./admin.php');
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212if ( ! current_user_can('activate_plugins') )
    1313        wp_die( __( 'You do not have sufficient permissions to manage plugins for this site.' ) );
  • wp-admin/post-new.php

    diff --git wp-admin/post-new.php wp-admin/post-new.php
    index 4d7df63..5d860f7 100644
     
    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';
    if ( is_multisite() ) { 
    6262// Show post form.
    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' );
  • wp-admin/post.php

    diff --git wp-admin/post.php wp-admin/post.php
    index eab89e6..b832004 100644
     
    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';
    case 'edit': 
    195195                enqueue_comment_hotkeys_js();
    196196        }
    197197
    198         include('./edit-form-advanced.php');
     198        include( ABSPATH . 'wp-admin/edit-form-advanced.php' );
    199199
    200200        break;
    201201
    default: 
    309309        exit();
    310310        break;
    311311} // end switch
    312 include('./admin-footer.php');
     312include( ABSPATH . 'wp-admin/admin-footer.php' );
  • wp-admin/press-this.php

    diff --git wp-admin/press-this.php wp-admin/press-this.php
    index 0f2be6c..38c6dfb 100644
     
    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

    diff --git wp-admin/profile.php wp-admin/profile.php
    index c5021f1..0f33eb2 100644
     
    1515define('IS_PROFILE_PAGE', true);
    1616
    1717/** Load User Editing Page */
    18 require_once('./user-edit.php');
     18require_once( dirname( __FILE__ ) . '/user-edit.php' );
  • wp-admin/revision.php

    diff --git wp-admin/revision.php wp-admin/revision.php
    index b6b4ae8..e11b6b8 100644
     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once('./admin.php');
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212require ABSPATH . 'wp-admin/includes/revision.php';
    1313
    $revisions_sidebar .= '<p>' . __( '<a href="http://wordpress.org/support/" targe 
    110110
    111111get_current_screen()->set_help_sidebar( $revisions_sidebar );
    112112
    113 require_once( './admin-header.php' );
     113require_once( ABSPATH . 'wp-admin/admin-header.php' );
    114114
    115115?>
    116116
    require_once( './admin-header.php' ); 
    207207
    208208
    209209<?php
    210 require_once( './admin-footer.php' );
     210require_once( dirname( __FILE__ ) . '/admin-footer.php' );
  • wp-admin/theme-editor.php

    diff --git wp-admin/theme-editor.php wp-admin/theme-editor.php
    index 8f95cab..56b3af0 100644
     
    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' ) );
  • wp-admin/theme-install.php

    diff --git wp-admin/theme-install.php wp-admin/theme-install.php
    index 14d9f52..07f42d7 100644
    if ( !defined( 'IFRAME_REQUEST' ) && isset( $_GET['tab'] ) && ( 'theme-informati 
    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

    diff --git wp-admin/themes.php wp-admin/themes.php
    index 14ed887..099529c 100644
     
    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?' ) );
    get_current_screen()->set_help_sidebar( 
    9191wp_enqueue_script( 'theme' );
    9292wp_enqueue_script( 'customize-loader' );
    9393
    94 require_once('./admin-header.php');
     94require_once( ABSPATH . 'wp-admin/admin-header.php' );
    9595?>
    9696
    9797<div class="wrap"><?php
    $customize_title = sprintf( __( 'Customize &#8220;%s&#8221;' ), $ct->display('Na 
    213213<?php
    214214if ( ! current_user_can( 'switch_themes' ) ) {
    215215        echo '</div>';
    216         require( './admin-footer.php' );
     216        require( dirname( __FILE__ ) . '/admin-footer.php' );
    217217        exit;
    218218}
    219219?>
    if ( ! is_multisite() && current_user_can('edit_themes') && $broken_themes = wp_ 
    308308?>
    309309</div>
    310310
    311 <?php require('./admin-footer.php'); ?>
     311<?php require( dirname( __FILE__ ) . '/admin-footer.php' ); ?>
  • wp-admin/tools.php

    diff --git wp-admin/tools.php wp-admin/tools.php
    index 387be90..4fab0bd 100644
     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once('./admin.php');
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212$title = __('Tools');
    1313
    get_current_screen()->set_help_sidebar( 
    2929        '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
    3030);
    3131
    32 require_once('./admin-header.php');
     32require_once( ABSPATH . 'wp-admin/admin-header.php' );
    3333
    3434?>
    3535<div class="wrap">
    do_action( 'tool_box' ); 
    6868?>
    6969</div>
    7070<?php
    71 include('./admin-footer.php');
     71include( ABSPATH . 'wp-admin/admin-footer.php' );
  • wp-admin/update-core.php

    diff --git wp-admin/update-core.php wp-admin/update-core.php
    index c8f5877..8757222 100644
     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once('./admin.php');
     10require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212wp_enqueue_style( 'plugin-install' );
    1313wp_enqueue_script( 'plugin-install' );
    if ( 'upgrade-core' == $action ) { 
    543543
    544544} else {
    545545        do_action('update-core-custom_' . $action);
    546 }
    547  No newline at end of file
     546}
  • wp-admin/update.php

    diff --git wp-admin/update.php wp-admin/update.php
    index caed6e7..b89ada2 100644
    if ( ! defined( 'IFRAME_REQUEST' ) && isset( $_GET['action'] ) && in_array( $_GE 
    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

    diff --git wp-admin/upgrade.php wp-admin/upgrade.php
    index b042877..24fe976 100644
     
    1515define( 'WP_INSTALLING', true );
    1616
    1717/** Load WordPress Bootstrap */
    18 require( '../wp-load.php' );
     18require( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
    1919
    2020nocache_headers();
    2121
  • wp-admin/upload.php

    diff --git wp-admin/upload.php wp-admin/upload.php
    index 8dec130..64d0f84 100644
     
    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.' ) );
    get_current_screen()->set_help_sidebar( 
    173173        '<p>' . __( '<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>' ) . '</p>'
    174174);
    175175
    176 require_once('./admin-header.php');
     176require_once( ABSPATH . 'wp-admin/admin-header.php' );
    177177?>
    178178
    179179<div class="wrap">
    if ( !empty($message) ) { ?> 
    247247</div>
    248248
    249249<?php
    250 include('./admin-footer.php');
     250include( ABSPATH . 'wp-admin/admin-footer.php' );
  • wp-admin/user-edit.php

    diff --git wp-admin/user-edit.php wp-admin/user-edit.php
    index bb9119f..fb3b680 100644
     
    77 */
    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' ) );
    1313
  • wp-admin/user-new.php

    diff --git wp-admin/user-new.php wp-admin/user-new.php
    index 33b8196..4872648 100644
     
    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' ) )
    if ( is_multisite() && current_user_can( 'promote_users' ) && ! wp_is_large_netw 
    187187        wp_enqueue_script( 'user-suggest' );
    188188}
    189189
    190 require_once( 'admin-header.php' );
     190require_once( ABSPATH . 'wp-admin/admin-header.php' );
    191191
    192192if ( isset($_GET['update']) ) {
    193193        $messages = array();
    foreach ( array( 'user_login' => 'login', 'first_name' => 'firstname', 'last_nam 
    386386<?php } // current_user_can('create_users') ?>
    387387</div>
    388388<?php
    389 include('./admin-footer.php');
     389include( ABSPATH . 'wp-admin/admin-footer.php' );
  • wp-admin/user/about.php

    diff --git wp-admin/user/about.php wp-admin/user/about.php
    index a5dbc98..b794355 100644
     
    88 */
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( './admin.php' );
     11require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 require( '../about.php' );
    14  No newline at end of file
     13require( ABSPATH . 'wp-admin/about.php' );
  • wp-admin/user/credits.php

    diff --git wp-admin/user/credits.php wp-admin/user/credits.php
    index faba84d..2b4021a 100644
     
    88 */
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( './admin.php' );
     11require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 require( '../credits.php' );
    14  No newline at end of file
     13require( ABSPATH . 'wp-admin/credits.php' );
  • wp-admin/user/freedoms.php

    diff --git wp-admin/user/freedoms.php wp-admin/user/freedoms.php
    index 3d04407..d2b77b5 100644
     
    88 */
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( './admin.php' );
     11require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 require( '../freedoms.php' );
    14  No newline at end of file
     13require( ABSPATH . 'wp-admin/freedoms.php' );
  • wp-admin/user/index.php

    diff --git wp-admin/user/index.php wp-admin/user/index.php
    index fe0c27c..15ee54e 100644
     
    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

    diff --git wp-admin/user/profile.php wp-admin/user/profile.php
    index b55ba1c..ba059f9 100644
     
    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' );
  • wp-admin/user/user-edit.php

    diff --git wp-admin/user/user-edit.php wp-admin/user/user-edit.php
    index 31794ba..24b50bf 100644
     
    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' );
  • wp-admin/users.php

    diff --git wp-admin/users.php wp-admin/users.php
    index e807487..1f4fc5e 100644
     
    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?' ) );
    case 'delete': 
    211211
    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">
    217217<?php wp_nonce_field('delete-users') ?>
    case 'remove': 
    316316        else
    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">
    322322<?php wp_nonce_field('remove-users') ?>
    default: 
    368368                exit;
    369369        }
    370370
    371         include('./admin-header.php');
     371        include( ABSPATH . 'wp-admin/admin-header.php' );
    372372
    373373        $messages = array();
    374374        if ( isset($_GET['update']) ) :
    break; 
    455455
    456456} // end of the $doaction switch
    457457
    458 include('./admin-footer.php');
     458include( ABSPATH . 'wp-admin/admin-footer.php' );
  • wp-admin/widgets.php

    diff --git wp-admin/widgets.php wp-admin/widgets.php
    index 3e0b146..1a6f158 100644
     
    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');
    if ( isset($_GET['editwidget']) && $_GET['editwidget'] ) { 
    221221        $width = ' style="width:' . max($control['width'], 350) . 'px"';
    222222        $key = isset($_GET['key']) ? (int) $_GET['key'] : 0;
    223223
    224         require_once( './admin-header.php' ); ?>
     224        require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?>
    225225        <div class="wrap">
    226226        <?php screen_icon(); ?>
    227227        <h2><?php echo esc_html( $title ); ?></h2>
    if ( isset($_GET['editwidget']) && $_GET['editwidget'] ) { 
    288288        </div>
    289289        </div>
    290290<?php
    291         require_once( './admin-footer.php' );
     291        require_once( dirname( __FILE__ ) . '/admin-footer.php' );
    292292        exit;
    293293}
    294294
    $errors = array( 
    301301        __('Error in displaying the widget settings form.')
    302302);
    303303
    304 require_once( './admin-header.php' ); ?>
     304require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?>
    305305
    306306<div class="wrap">
    307307<?php screen_icon(); ?>
    foreach ( $wp_registered_sidebars as $sidebar => $registered_sidebar ) { 
    396396
    397397<?php
    398398do_action( 'sidebar_admin_page' );
    399 require_once( './admin-footer.php' );
     399require_once( dirname( __FILE__ ) . '/admin-footer.php' );
  • wp-cron.php

    diff --git wp-cron.php wp-cron.php
    index 04953c8..13f456e 100644
    define('DOING_CRON', true); 
    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
    2929// Uncached doing_cron transient fetch
  • wp-includes/class-feed.php

    diff --git wp-includes/class-feed.php wp-includes/class-feed.php
    index bdad84d..342e04d 100644
     
    11<?php
    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 {
    77        /**
  • wp-includes/feed.php

    diff --git wp-includes/feed.php wp-includes/feed.php
    index e6b9ae0..680a682 100644
    function feed_content_type( $type = '' ) { 
    527527 * @return WP_Error|SimplePie WP_Error object on failure or SimplePie object on success
    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();
    533533
  • wp-includes/js/tinymce/wp-mce-help.php

    diff --git wp-includes/js/tinymce/wp-mce-help.php wp-includes/js/tinymce/wp-mce-help.php
    index 88c728b..befcf94 100644
     
    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>
  • wp-includes/load.php

    diff --git wp-includes/load.php wp-includes/load.php
    index e1eb15e..9cde845 100644
    function wp_start_object_cache() { 
    384384        $first_init = false;
    385385        if ( ! function_exists( 'wp_cache_init' ) ) {
    386386                if ( file_exists( WP_CONTENT_DIR . '/object-cache.php' ) ) {
    387                         require_once ( WP_CONTENT_DIR . '/object-cache.php' );
     387                        require_once( WP_CONTENT_DIR . '/object-cache.php' );
    388388                        $_wp_using_ext_object_cache = true;
    389389                } else {
    390                         require_once ( ABSPATH . WPINC . '/cache.php' );
     390                        require_once( ABSPATH . WPINC . '/cache.php' );
    391391                        $_wp_using_ext_object_cache = false;
    392392                }
    393393                $first_init = true;
  • wp-includes/rss-functions.php

    diff --git wp-includes/rss-functions.php wp-includes/rss-functions.php
    index 8645847..e6fc2b1 100644
     
    66 */
    77
    88_deprecated_file( basename(__FILE__), '2.1', WPINC . '/rss.php' );
    9 require_once (ABSPATH . WPINC . '/rss.php');
     9require_once( ABSPATH . WPINC . '/rss.php' );
  • wp-links-opml.php

    diff --git wp-links-opml.php wp-links-opml.php
    index e30869b..cfd58b7 100644
     
    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 = '';
    foreach ( (array)$cats as $cat ) : 
    5656endforeach; // $cats
    5757?>
    5858</body>
    59 </opml>
    60  No newline at end of file
     59</opml>
  • wp-signup.php

    diff --git wp-signup.php wp-signup.php
    index 9dd2c3d..e1ba831 100644
    require( dirname(__FILE__) . '/wp-load.php' ); 
    55
    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 ) {
    1111        wp_redirect( network_home_url() );
  • wp-trackback.php

    diff --git wp-trackback.php wp-trackback.php
    index 8b41505..3b6e431 100644
     
    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