WordPress.org

Make WordPress Core

Ticket #25068: 25068.001.patch

File 25068.001.patch, 52.1 KB (added by hakre, 6 years ago)
  • 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..3880bad 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( __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..ac7e7f9 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( __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( dirname( __FILE__ ) . '/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..21e81b9 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';
    case 'editcomment' : 
    6060        );
    6161
    6262        wp_enqueue_script('comment');
    63         require_once('./admin-header.php');
     63        require_once( dirname( __FILE__ ) . '/admin-header.php' );
    6464
    6565        $comment_id = absint( $_GET['c'] );
    6666
    case 'spam' : 
    104104                die();
    105105        }
    106106
    107         require_once('./admin-header.php');
     107        require_once( dirname( __FILE__ ) . '/admin-header.php' );
    108108
    109109        $formaction    = $action . 'comment';
    110110        $nonce_action  = 'approve' == $action ? 'approve-comment_' : 'delete-comment_';
  • 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..73de297 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( dirname( __FILE__ ) . '/admin-header.php' );
    140140?>
    141141
    142142<div class="wrap">
  • wp-admin/edit-form-advanced.php

    diff --git wp-admin/edit-form-advanced.php wp-admin/edit-form-advanced.php
    index f3a65e5..a20000e 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( dirname( __FILE__ ) . '/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( dirname( __FILE__ ) . '/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..2284607 100644
    if ( ! empty($link_id) ) { 
    2222        $nonce_action = 'add-bookmark';
    2323}
    2424
    25 require_once('./includes/meta-boxes.php');
     25require_once( dirname( __FILE__ ) . '/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');
  • wp-admin/edit-tags.php

    diff --git wp-admin/edit-tags.php wp-admin/edit-tags.php
    index 8375202..a4ab9dd 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' ) );
  • wp-admin/edit.php

    diff --git wp-admin/edit.php wp-admin/edit.php
    index 65fd034..9478681 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( dirname( __FILE__ ) . '/admin-header.php' );
    228228?>
    229229<div class="wrap">
    230230<?php screen_icon(); ?>
  • wp-admin/export.php

    diff --git wp-admin/export.php wp-admin/export.php
    index fc491b3..9786163 100644
    if ( !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( dirname( __FILE__ ) . '/includes/export.php' );
    1717$title = __('Export');
    1818
    1919/**
  • 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/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/link-add.php

    diff --git wp-admin/link-add.php wp-admin/link-add.php
    index 6f9c567..31fa5a2 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() ) 
    2626$link = get_default_link_to_edit();
    2727include('./edit-link-form.php');
    2828
    29 require('./admin-footer.php');
     29require( dirname( __FILE__ ) . '/admin-footer.php' );
  • wp-admin/maint/repair.php

    diff --git wp-admin/maint/repair.php wp-admin/maint/repair.php
    index 7cc13e1..8ca622d 100644
     
    77 */
    88define('WP_REPAIRING', true);
    99
    10 require_once('../../wp-load.php');
     10require_once( 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..e452594 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( dirname( __FILE__ ) . '/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( dirname( __FILE__ ) . '/admin-footer.php' );
    140140
    141141        exit;
    142142
  • wp-admin/moderation.php

    diff --git wp-admin/moderation.php wp-admin/moderation.php
    index 9129795..344c00f 100644
     
    77 * @package WordPress
    88 * @subpackage Administration
    99 */
    10 require_once('../wp-load.php');
     10require_once( 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..1d5571c 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( dirname( __FILE__ ) . '/admin-header.php' );
    3333
    3434echo '<div class="wrap">';
    3535screen_icon();
  • 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..a29af94 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( dirname( __FILE__ ) . '/admin-header.php' );
    5353
    5454if ( $updated ) { ?>
    5555        <div id="message" class="updated"><p><strong><?php _e( 'Settings saved.' ); ?></strong></p></div>
  • wp-admin/nav-menus.php

    diff --git wp-admin/nav-menus.php wp-admin/nav-menus.php
    index 549d03b..a1ab0a7 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( dirname( __FILE__ ) . '/admin-header.php' );
    533533?>
    534534<div class="wrap">
    535535        <?php screen_icon(); ?>
  • 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..da3d7e4 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( dirname( __FILE__ ) . '/../about.php' );
  • wp-admin/network/credits.php

    diff --git wp-admin/network/credits.php wp-admin/network/credits.php
    index 82caa3a..e8f68fd 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( dirname( __FILE__ ) . '/../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..f098213 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( dirname( __FILE__ ) . '/../freedoms.php' );
  • wp-admin/network/index.php

    diff --git wp-admin/network/index.php wp-admin/network/index.php
    index 96c2c24..21287a4 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( dirname( __FILE__ ) . '/../admin-header.php' );
    6666
    6767?>
    6868
  • wp-admin/network/plugin-editor.php

    diff --git wp-admin/network/plugin-editor.php wp-admin/network/plugin-editor.php
    index 8850aa8..078d559 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( dirname( __FILE__ ) . '/../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..40d1012 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( dirname( __FILE__ ) . '/../plugin-install.php' );
  • wp-admin/network/plugins.php

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

    diff --git wp-admin/network/profile.php wp-admin/network/profile.php
    index c100e68..2d3c4a9 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( dirname( __FILE__ ) . '/../profile.php' );
  • wp-admin/network/settings.php

    diff --git wp-admin/network/settings.php wp-admin/network/settings.php
    index e745694..61e2d15 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/setup.php

    diff --git wp-admin/network/setup.php wp-admin/network/setup.php
    index e5d5880..69f231e 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( dirname( __FILE__ ) . '/../network.php' );
  • wp-admin/network/site-info.php

    diff --git wp-admin/network/site-info.php wp-admin/network/site-info.php
    index 7dd6aeb..6420cfc 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( dirname( __FILE__ ) . '/../admin-header.php' );
    9595
    9696?>
    9797
    if ( ! empty( $messages ) ) { 
    177177
    178178</div>
    179179<?php
    180 require('../admin-footer.php');
     180require( dirname( __FILE__ ) . '/../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..c1e7aad 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( dirname( __FILE__ ) . '/../admin-header.php' );
    111111
    112112?>
    113113
    if ( ! empty( $messages ) ) { 
    150150        </form>
    151151</div>
    152152<?php
    153 require('../admin-footer.php');
     153require( dirname( __FILE__ ) . '/../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..6dab62a 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( dirname( __FILE__ ) . '/../admin-header.php' );
    8181
    8282?>
    8383
    if ( ! empty( $messages ) ) { 
    152152
    153153</div>
    154154<?php
    155 require('../admin-footer.php');
     155require( dirname( __FILE__ ) . '/../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..4a70115 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( dirname( __FILE__ ) . '/../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..095b6df 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( dirname( __FILE__ ) . '/../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( dirname( __FILE__ ) . '/../admin-footer.php' );
  • wp-admin/network/sites.php

    diff --git wp-admin/network/sites.php wp-admin/network/sites.php
    index 93341c3..2854d84 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( dirname( __FILE__ ) . '/../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( dirname( __FILE__ ) . '/../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..599f7ce 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( dirname( __FILE__ ) . '/../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..067e817 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( dirname( __FILE__ ) . '/../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..41ccba2 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( dirname( __FILE__ ) . '/../update-core.php' );
  • wp-admin/network/update.php

    diff --git wp-admin/network/update.php wp-admin/network/update.php
    index b2c6177..8d6e77c 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( dirname( __FILE__ ) . '/../update.php' );
  • wp-admin/network/upgrade.php

    diff --git wp-admin/network/upgrade.php wp-admin/network/upgrade.php
    index 7415654..6ca47a5 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( dirname( __FILE__ ) . '/../admin-header.php' );
    3737
    3838if ( ! current_user_can( 'manage_network' ) )
    3939        wp_die( __( 'You do not have permission to access this page.' ) );
  • wp-admin/network/user-edit.php

    diff --git wp-admin/network/user-edit.php wp-admin/network/user-edit.php
    index 0b2cfd2..55cda39 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( dirname( __FILE__ ) . '/../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..7bd89b1 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( dirname( __FILE__ ) . '/../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( dirname( __FILE__ ) . '/../admin-footer.php' );
  • wp-admin/network/users.php

    diff --git wp-admin/network/users.php wp-admin/network/users.php
    index 1318355..bbbcc01 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( dirname( __FILE__ ) . '/../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( dirname( __FILE__ ) . '/../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( dirname( __FILE__ ) . '/../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( dirname( __FILE__ ) . '/../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( dirname( __FILE__ ) . '/../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( dirname( __FILE__ ) . '/../admin-footer.php' ); ?>
  • wp-admin/options-discussion.php

    diff --git wp-admin/options-discussion.php wp-admin/options-discussion.php
    index 6e8d79f..5fd1306 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.' ) );
  • wp-admin/options-general.php

    diff --git wp-admin/options-general.php wp-admin/options-general.php
    index fdae33a..4625950 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.' ) );
  • wp-admin/options-media.php

    diff --git wp-admin/options-media.php wp-admin/options-media.php
    index 8ba2371..5b8a8ab 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.' ) );
  • 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..5be68a1 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.' ) );
  • wp-admin/options-writing.php

    diff --git wp-admin/options-writing.php wp-admin/options-writing.php
    index 8015bae..2cf55c3 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.' ) );
  • wp-admin/options.php

    diff --git wp-admin/options.php wp-admin/options.php
    index 80a0719..b9af62d 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';
  • 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..1f01539 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';
  • wp-admin/post.php

    diff --git wp-admin/post.php wp-admin/post.php
    index eab89e6..664b65f 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';
  • 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..4d452d1 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( dirname( __FILE__ ) . '/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..79e0895 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( dirname( __FILE__ ) . '/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..f93e6a3 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( dirname( __FILE__ ) . '/admin-header.php' );
    3333
    3434?>
    3535<div class="wrap">
  • 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..29c0888 100644
     
    1515define( 'WP_INSTALLING', true );
    1616
    1717/** Load WordPress Bootstrap */
    18 require( '../wp-load.php' );
     18require( 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..eb21bb1 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( dirname( __FILE__ ) . '/admin-header.php' );
    177177?>
    178178
    179179<div class="wrap">
  • 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..08c0d2c 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( dirname( __FILE__ ) . 'admin-header.php' );
    191191
    192192if ( isset($_GET['update']) ) {
    193193        $messages = array();
  • wp-admin/user/about.php

    diff --git wp-admin/user/about.php wp-admin/user/about.php
    index a5dbc98..b951786 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( dirname( __FILE__ ) . '/../about.php' );
  • wp-admin/user/credits.php

    diff --git wp-admin/user/credits.php wp-admin/user/credits.php
    index faba84d..55e46fa 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( dirname( __FILE__ ) . '/../credits.php' );
  • wp-admin/user/freedoms.php

    diff --git wp-admin/user/freedoms.php wp-admin/user/freedoms.php
    index 3d04407..9e40bc3 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( dirname( __FILE__ ) . '/../freedoms.php' );
  • wp-admin/user/index.php

    diff --git wp-admin/user/index.php wp-admin/user/index.php
    index fe0c27c..3c99136 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( dirname( __FILE__ ) . '/../index.php' );
  • wp-admin/user/profile.php

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

    diff --git wp-admin/user/user-edit.php wp-admin/user/user-edit.php
    index 31794ba..5a59b23 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( dirname( __FILE__ ) . '/../user-edit.php' );
  • wp-admin/users.php

    diff --git wp-admin/users.php wp-admin/users.php
    index e807487..ba45e1c 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?' ) );
  • wp-admin/widgets.php

    diff --git wp-admin/widgets.php wp-admin/widgets.php
    index 3e0b146..387eeef 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( dirname( __FILE__ ) . '/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( dirname( __FILE__ ) . '/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/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..c1fe92e 100644
     
    66 */
    77
    88/** @ignore */
    9 require_once('../../../wp-load.php');
     9require_once( dirname( __FILE__ ) . '/../../../wp-load.php' );
    1010header('Content-Type: text/html; charset=' . get_bloginfo('charset'));
    1111?>
    1212<!DOCTYPE html>
  • 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