Make WordPress Core

Ticket #12594: path_patch.diff

File path_patch.diff, 45.2 KB (added by sorich87, 15 years ago)
  • wp-activate.php

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

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

     
    77 */
    88
    99@header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
    10 if (!isset($_GET["page"])) require_once('admin.php');
     10if (!isset($_GET["page"])) require_once('./admin.php');
    1111
    1212get_admin_page_title();
    1313$title = esc_html( strip_tags( $title ) );
  • wp-admin/async-upload.php

     
    2121if ( empty($_COOKIE[LOGGED_IN_COOKIE]) && !empty($_REQUEST['logged_in_cookie']) )
    2222        $_COOKIE[LOGGED_IN_COOKIE] = $_REQUEST['logged_in_cookie'];
    2323unset($current_user);
    24 require_once('admin.php');
     24require_once('./admin.php');
    2525
    2626header('Content-Type: text/plain; charset=' . get_option('blog_charset'));
    2727
  • wp-admin/comment.php

     
    77 */
    88
    99/** Load WordPress Bootstrap */
    10 require_once('admin.php');
     10require_once('./admin.php');
    1111
    1212$parent_file = 'edit-comments.php';
    1313$submenu_file = 'edit-comments.php';
     
    3636 */
    3737function comment_footer_die( $msg ) {
    3838        echo "<div class='wrap'><p>$msg</p></div>";
    39         include('admin-footer.php');
     39        include('./admin-footer.php');
    4040        die;
    4141}
    4242
     
    4646        $title = __('Edit Comment');
    4747
    4848        wp_enqueue_script('comment');
    49         require_once('admin-header.php');
     49        require_once('./admin-header.php');
    5050
    5151        $comment_id = absint( $_GET['c'] );
    5252
     
    6161
    6262        $comment = get_comment_to_edit( $comment_id );
    6363
    64         include('edit-form-comment.php');
     64        include('./edit-form-comment.php');
    6565
    6666        break;
    6767
     
    8888                die();
    8989        }
    9090
    91         require_once('admin-header.php');
     91        require_once('./admin-header.php');
    9292
    9393        $formaction    = $action . 'comment';
    9494        $nonce_action  = 'approve' == $action ? 'approve-comment_' : 'delete-comment_';
     
    276276
    277277} // end switch
    278278
    279 include('admin-footer.php');
     279include('./admin-footer.php');
    280280
    281281?>
  • wp-admin/edit-comments.php

     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once('admin.php');
     10require_once('./admin.php');
    1111
    1212if ( !current_user_can('edit_posts') )
    1313        wp_die(__('Cheatin&#8217; uh?'));
     
    105105else
    106106        $title = __('Edit Comments');
    107107
    108 require_once('admin-header.php');
     108require_once('./admin-header.php');
    109109
    110110$mode = ( empty($_GET['mode']) ) ? 'detail' : esc_attr($_GET['mode']);
    111111
     
    468468<?php
    469469wp_comment_reply('-1', true, 'detail');
    470470wp_comment_trashnotice();
    471 include('admin-footer.php'); ?>
     471include('./admin-footer.php'); ?>
  • wp-admin/edit-form-advanced.php

     
    8888$post_type_object = get_post_type_object($post_type);
    8989
    9090// All meta boxes should be defined and added before the first do_meta_boxes() call (or potentially during the do_meta_boxes action).
    91 require_once('includes/meta-boxes.php');
     91require_once('./includes/meta-boxes.php');
    9292
    9393add_meta_box('submitdiv', __('Publish'), 'post_submit_meta_box', $post_type, 'side', 'core');
    9494
     
    148148
    149149add_contextual_help($current_screen, drag_drop_help());
    150150
    151 require_once('admin-header.php');
     151require_once('./admin-header.php');
    152152?>
    153153
    154154<div class="wrap">
  • wp-admin/edit-link-categories.php

     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once('admin.php');
     10require_once('./admin.php');
    1111
    1212// Handle bulk actions
    1313if ( isset($_GET['action']) && isset($_GET['delete']) ) {
     
    227227</div><!-- /wrap -->
    228228
    229229<?php inline_edit_term_row('edit-link-categories', 'link_category'); ?>
    230 <?php include('admin-footer.php'); ?>
     230<?php include('./admin-footer.php'); ?>
  • wp-admin/edit-link-form.php

     
    2222        $nonce_action = 'add-bookmark';
    2323}
    2424
    25 require_once('includes/meta-boxes.php');
     25require_once('./includes/meta-boxes.php');
    2626
    2727add_meta_box('linksubmitdiv', __('Save'), 'link_submit_meta_box', 'link', 'side', 'core');
    2828add_meta_box('linkcategorydiv', __('Categories'), 'link_categories_meta_box', 'link', 'normal', 'core');
  • wp-admin/edit-tags.php

     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once('admin.php');
     10require_once('./admin.php');
    1111
    1212wp_reset_vars( array('action', 'tag', 'taxonomy', 'post_type') );
    1313
     
    122122        $tag_ID = (int) $_GET['tag_ID'];
    123123
    124124        $tag = get_term($tag_ID, $taxonomy, OBJECT, 'edit');
    125         include('edit-tag-form.php');
     125        include('./edit-tag-form.php');
    126126
    127127break;
    128128
     
    402402break;
    403403}
    404404
    405 include('admin-footer.php');
     405include('./admin-footer.php');
    406406
    407407?>
     408 No newline at end of file
  • wp-admin/edit.php

     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once('admin.php');
     10require_once('./admin.php');
    1111
    1212if ( !isset($_GET['post_type']) )
    1313        $post_type = 'post';
     
    156156else
    157157        $num_pages = $wp_query->max_num_pages;
    158158
    159 require_once('admin-header.php');
     159require_once('./admin-header.php');
    160160
    161161if ( empty($_GET['mode']) )
    162162        $mode = 'list';
     
    375375
    376376<div class="clear"></div>
    377377
    378 <?php include( 'edit-post-rows.php' ); ?>
     378<?php include( './edit-post-rows.php' ); ?>
    379379
    380380<div class="tablenav">
    381381
     
    425425</div>
    426426
    427427<?php
    428 include('admin-footer.php');
     428include('./admin-footer.php');
  • wp-admin/export.php

     
    1313        wp_die(__('You do not have sufficient permissions to export the content of this blog.'));
    1414
    1515/** Load WordPress export API */
    16 require_once('includes/export.php');
     16require_once('./includes/export.php');
    1717$title = __('Export');
    1818
    1919if ( isset( $_GET['download'] ) ) {
  • wp-admin/index-extra.php

     
    77 */
    88
    99/** Load WordPress Bootstrap */
    10 require_once( 'admin.php' );
     10require_once( './admin.php' );
    1111
    1212/** Load WordPress Administration Dashboard API */
    13 require( 'includes/dashboard.php' );
     13require( './includes/dashboard.php' );
    1414
    1515@header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) );
    1616send_nosniff_header();
  • wp-admin/index.php

     
    77 */
    88
    99/** Load WordPress Bootstrap */
    10 require_once('admin.php');
     10require_once('./admin.php');
    1111
    1212/** Load WordPress dashboard API */
    1313require_once(ABSPATH . 'wp-admin/includes/dashboard.php');
     
    2626
    2727add_contextual_help($current_screen, '<p>' . __('The modules on this screen can be arranged in several columns. You can select the number of columns from the Screen Options tab.') . "</p>\n" . drag_drop_help() );
    2828
    29 require_once('admin-header.php');
     29require_once('./admin-header.php');
    3030
    3131$today = current_time('mysql', 1);
    3232?>
  • wp-admin/link-add.php

     
    77 */
    88
    99/** Load WordPress Administration Bootstrap */
    10 require_once('admin.php');
     10require_once('./admin.php');
    1111
    1212if ( ! current_user_can('manage_links') )
    1313        wp_die(__('You do not have sufficient permissions to add links to this blog.'));
     
    2424wp_enqueue_script('xfn');
    2525
    2626$link = get_default_link_to_edit();
    27 include('edit-link-form.php');
     27include('./edit-link-form.php');
    2828
    29 require('admin-footer.php');
     29require('./admin-footer.php');
    3030?>
     31 No newline at end of file
  • wp-admin/link-category.php

     
    1010 */
    1111
    1212/** Load WordPress Administration Bootstrap */
    13 require_once('admin.php');
     13require_once('./admin.php');
    1414
    1515wp_reset_vars(array('action', 'cat'));
    1616
     
    6767        require_once ('admin-header.php');
    6868        $cat_ID = (int) $_GET['cat_ID'];
    6969        $category = get_term_to_edit($cat_ID, 'link_category');
    70         include('edit-link-category-form.php');
    71         include('admin-footer.php');
     70        include('./edit-link-category-form.php');
     71        include('./admin-footer.php');
    7272        exit;
    7373break;
    7474
  • wp-admin/link-manager.php

     
    278278</div>
    279279
    280280<?php
    281 include('admin-footer.php');
     281include('./admin-footer.php');
  • wp-admin/media-new.php

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

     
    1010 */
    1111
    1212/** Load WordPress Administration Bootstrap */
    13 require_once('admin.php');
     13require_once('./admin.php');
    1414
    1515if (!current_user_can('upload_files'))
    1616        wp_die(__('You do not have permission to upload files.'));
     
    5656
    5757        $title = __('Upload New Media');
    5858        $parent_file = 'upload.php';
    59         require_once('admin-header.php'); ?>
     59        require_once('./admin-header.php'); ?>
    6060        <div class="wrap">
    6161        <?php screen_icon(); ?>
    6262        <h2><?php echo esc_html( $title ); ?></h2>
     
    8686        </div>
    8787
    8888<?php
    89         include('admin-footer.php');
     89        include('./admin-footer.php');
    9090
    9191} else {
    9292
  • wp-admin/media.php

     
    77 */
    88
    99/** Load WordPress Administration Bootstrap */
    10 require_once('admin.php');
     10require_once('./admin.php');
    1111
    1212$parent_file = 'upload.php';
    1313$submenu_file = 'upload.php';
     
    6767        wp_enqueue_script('image-edit');
    6868        wp_enqueue_style('imgareaselect');
    6969
    70         require( 'admin-header.php' );
     70        require( './admin-header.php' );
    7171
    7272        $parent_file = 'upload.php';
    7373        $message = '';
     
    114114
    115115<?php
    116116
    117         require( 'admin-footer.php' );
     117        require( './admin-footer.php' );
    118118
    119119        exit;
    120120
  • wp-admin/ms-admin.php

     
    11<?php
    2 require_once('admin.php');
     2require_once('./admin.php');
    33
    44if ( !is_multisite() )
    55        wp_die( __('Multisite support is not enabled.') );
     
    1212}
    1313add_action( 'admin_head', 'index_css' );
    1414
    15 require_once('admin-header.php');
     15require_once('./admin-header.php');
    1616
    1717if ( ! current_user_can( 'manage_network' ) )
    1818        wp_die( __('You do not have permission to access this page.') );
     
    6161        </div><!-- rightnow -->
    6262</div>
    6363
    64 <?php include('admin-footer.php'); ?>
     64<?php include('./admin-footer.php'); ?>
  • wp-admin/ms-delete-site.php

     
    11<?php
    2 require_once('admin.php');
     2require_once('./admin.php');
    33
    44if ( !is_multisite() )
    55        wp_die( __('Multisite support is not enabled.') );
     
    1212
    1313$title = __('Delete Blog');
    1414$parent_file = 'tools.php';
    15 require_once('admin-header.php');
     15require_once('./admin-header.php');
    1616
    1717echo '<div class="wrap">';
    1818screen_icon();
     
    6363}
    6464echo '</div>';
    6565
    66 include('admin-footer.php');
     66include('./admin-footer.php');
    6767?>
     68 No newline at end of file
  • wp-admin/ms-edit.php

     
    11<?php
    2 require_once('admin.php');
     2require_once('./admin.php');
    33
    44if ( !is_multisite() )
    55        wp_die( __('Multisite support is not enabled.') );
     
    497497                        wp_die( __('You do not have permission to access this page.') );
    498498
    499499                if ( isset($_POST['alluser_delete']) ) {
    500                         require_once('admin-header.php');
     500                        require_once('./admin-header.php');
    501501                        echo '<div class="wrap" style="position:relative;">';
    502502                        confirm_delete_users( $_POST['allusers'] );
    503503                        echo '</div>';
    504             require_once('admin-footer.php');
     504            require_once('./admin-footer.php');
    505505                } elseif ( isset( $_POST[ 'alluser_transfer_delete' ] ) ) {
    506506                        if ( is_array( $_POST[ 'blog' ] ) && !empty( $_POST[ 'blog' ] ) ) {
    507507                                foreach ( $_POST[ 'blog' ] as $id => $users ) {
  • wp-admin/ms-options.php

     
    11<?php
    2 require_once('admin.php');
     2require_once('./admin.php');
    33
    44if ( !is_multisite() )
    55        wp_die( __('Multisite support is not enabled.') );
     
    77$title = __('Network Options');
    88$parent_file = 'ms-admin.php';
    99
    10 include('admin-header.php');
     10include('./admin-header.php');
    1111
    1212if ( ! current_user_can( 'manage_network_options' ) )
    1313    wp_die( __('You do not have permission to access this page.') );
  • wp-admin/ms-sites.php

     
    11<?php
    2 require_once('admin.php');
     2require_once('./admin.php');
    33
    44if ( !is_multisite() )
    55        wp_die( __('Multisite support is not enabled.') );
     
    99
    1010wp_enqueue_script( 'admin-forms' );
    1111
    12 require_once('admin-header.php');
     12require_once('./admin-header.php');
    1313
    1414if ( ! current_user_can( 'manage_sites' ) )
    1515        wp_die( __('You do not have permission to access this page.') );
     
    762762        break;
    763763} // end switch( $action )
    764764
    765 include('admin-footer.php'); ?>
     765include('./admin-footer.php'); ?>
  • wp-admin/ms-themes.php

     
    11<?php
    2 require_once('admin.php');
     2require_once('./admin.php');
    33
    44$title = __('Network Themes');
    55$parent_file = 'ms-admin.php';
    6 require_once('admin-header.php');
     6require_once('./admin-header.php');
    77
    88if ( ! current_user_can( 'manage_network_themes' ) )
    99        wp_die( __('You do not have permission to access this page.') );
     
    7575        </p>
    7676</div>
    7777
    78 <?php include('admin-footer.php'); ?>
     78<?php include('./admin-footer.php'); ?>
  • wp-admin/ms-upgrade-network.php

     
    11<?php
    2 require_once('admin.php');
     2require_once('./admin.php');
    33
    44if ( !is_multisite() )
    55        wp_die( __('Multisite support is not enabled.') );
     
    88
    99$title = __('Update Network');
    1010$parent_file = 'ms-admin.php';
    11 require_once('admin-header.php');
     11require_once('./admin-header.php');
    1212
    1313if ( ! current_user_can( 'manage_network' ) )
    1414        wp_die( __('You do not have permission to access this page.') );
     
    6666?>
    6767</div>
    6868
    69 <?php include('admin-footer.php'); ?>
     69<?php include('./admin-footer.php'); ?>
  • wp-admin/ms-users.php

     
    11<?php
    2 require_once('admin.php');
     2require_once('./admin.php');
    33
    44if ( !is_multisite() )
    55        wp_die( __('Multisite support is not enabled.') );
     
    99
    1010wp_enqueue_script( 'admin-forms' );
    1111
    12 require_once('admin-header.php');
     12require_once('./admin-header.php');
    1313
    1414if ( ! current_user_can( 'manage_network_users' ) )
    1515        wp_die( __('You do not have permission to access this page.') );
     
    313313</div>
    314314<?php endif; ?>
    315315
    316 <?php include('admin-footer.php'); ?>
     316<?php include('./admin-footer.php'); ?>
  • wp-admin/my-sites.php

     
    11<?php
    22
    3 require_once('admin.php');
     3require_once('./admin.php');
    44
    55if ( !is_multisite() )
    66        wp_die( __('Multisite support is not enabled.') );
     
    2525
    2626$title = __('My Sites');
    2727$parent_file = 'index.php';
    28 require_once('admin-header.php');
     28require_once('./admin-header.php');
    2929
    3030if ( $updated ) { ?>
    3131                <div id="message" class="updated fade"><p><strong><?php _e( 'Your site preferences have been updated.' ); ?></strong></p></div>
     
    8383        </form>
    8484        </div>
    8585<?php
    86 include('admin-footer.php');
     86include('./admin-footer.php');
    8787
    8888?>
     89 No newline at end of file
  • wp-admin/nav-menus.php

     
    1010 */
    1111
    1212/** Load WordPress Administration Bootstrap */
    13 require_once( 'admin.php' );
     13require_once( './admin.php' );
    1414
    1515// Load all the nav menu interface functions
    1616require_once( ABSPATH . 'wp-admin/includes/nav-menu.php' );
     
    235235}
    236236
    237237// Get the admin header
    238 require_once( 'admin-header.php' );
     238require_once( './admin-header.php' );
    239239?>
    240240<div class="wrap">
    241241        <?php screen_icon(); ?>
     
    344344        <input type="hidden" id="edit-menu-item-id" name="edit-item-id" value="" />
    345345</div><!-- /#menu-item-settings-->
    346346
    347 <?php include( 'admin-footer.php' ); ?>
    348  No newline at end of file
     347<?php include( './admin-footer.php' ); ?>
     348 No newline at end of file
  • wp-admin/options-discussion.php

     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once('admin.php');
     10require_once('./admin.php');
    1111
    1212if ( ! current_user_can( 'manage_options' ) )
    1313        wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) );
     
    1515$title = __('Discussion Settings');
    1616$parent_file = 'options-general.php';
    1717
    18 include('admin-header.php');
     18include('./admin-header.php');
    1919?>
    2020
    2121<div class="wrap">
  • wp-admin/options-media.php

     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once('admin.php');
     10require_once('./admin.php');
    1111
    1212if ( ! current_user_can( 'manage_options' ) )
    1313        wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) );
     
    1515$title = __('Media Settings');
    1616$parent_file = 'options-general.php';
    1717
    18 include('admin-header.php');
     18include('./admin-header.php');
    1919
    2020?>
    2121
  • wp-admin/options-permalink.php

     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once('admin.php');
     10require_once('./admin.php');
    1111
    1212if ( ! current_user_can( 'manage_options' ) )
    1313        wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) );
     
    7070}
    7171add_filter('admin_head', 'add_js');
    7272
    73 include('admin-header.php');
     73include('./admin-header.php');
    7474
    7575$home_path = get_home_path();
    7676$iis7_permalinks = iis7_supports_permalinks();
  • wp-admin/options-reading.php

     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once( 'admin.php' );
     10require_once( './admin.php' );
    1111
    1212if ( ! current_user_can( 'manage_options' ) )
    1313        wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) );
     
    1515$title = __( 'Reading Settings' );
    1616$parent_file = 'options-general.php';
    1717
    18 include( 'admin-header.php' );
     18include( './admin-header.php' );
    1919?>
    2020
    2121<div class="wrap">
  • wp-admin/options-writing.php

     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once('admin.php');
     10require_once('./admin.php');
    1111
    1212if ( ! current_user_can( 'manage_options' ) )
    1313        wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) );
     
    1515$title = __('Writing Settings');
    1616$parent_file = 'options-general.php';
    1717
    18 include('admin-header.php');
     18include('./admin-header.php');
    1919?>
    2020
    2121<div class="wrap">
  • wp-admin/options.php

     
    1616 */
    1717
    1818/** WordPress Administration Bootstrap */
    19 require_once('admin.php');
     19require_once('./admin.php');
    2020
    2121$title = __('Settings');
    2222$this_file = 'options.php';
     
    161161        exit;
    162162}
    163163
    164 include('admin-header.php'); ?>
     164include('./admin-header.php'); ?>
    165165
    166166<div class="wrap">
    167167<?php screen_icon(); ?>
     
    214214
    215215
    216216<?php
    217 include('admin-footer.php');
     217include('./admin-footer.php');
    218218?>
  • wp-admin/plugin-editor.php

     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once('admin.php');
     10require_once('./admin.php');
    1111
    1212if ( !current_user_can('edit_plugins') )
    1313        wp_die('<p>'.__('You do not have sufficient permissions to edit plugins for this blog.').'</p>');
     
    102102                }
    103103        }
    104104
    105         require_once('admin-header.php');
     105        require_once('./admin-header.php');
    106106
    107107        update_recently_edited(WP_PLUGIN_DIR . '/' . $file);
    108108
     
    239239<?php
    240240        break;
    241241}
    242 include("admin-footer.php");
     242include("./admin-footer.php");
  • wp-admin/plugin-install.php

     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once('admin.php');
     10require_once('./admin.php');
    1111
    1212if ( ! current_user_can('install_plugins') )
    1313        wp_die(__('You do not have sufficient permissions to install plugins on this blog.'));
     
    5454
    5555add_contextual_help($current_screen, plugins_search_help());
    5656
    57 include('admin-header.php');
     57include('./admin-header.php');
    5858?>
    5959<div class="wrap">
    6060<?php screen_icon(); ?>
     
    7575        <?php do_action('install_plugins_' . $tab, $paged); ?>
    7676</div>
    7777<?php
    78 include('admin-footer.php');
     78include('./admin-footer.php');
  • wp-admin/plugins.php

     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once('admin.php');
     10require_once('./admin.php');
    1111
    1212if ( ! current_user_can( 'activate_plugins' ) )
    1313        wp_die( __( 'You do not have sufficient permissions to manage plugins for this site.' ) );
     
    109109                        $title = __( 'Upgrade Plugins' );
    110110                        $parent_file = 'plugins.php';
    111111
    112                         require_once( 'admin-header.php' );
     112                        require_once( './admin-header.php' );
    113113
    114114                        echo '<div class="wrap">';
    115115                        screen_icon();
     
    121121
    122122                        echo "<iframe src='$url' style='width: 100%; height:100%; min-height:850px;'></iframe>";
    123123                        echo '</div>';
    124                         require_once( 'admin-footer.php' );
     124                        require_once( './admin-footer.php' );
    125125                        exit;
    126126                        break;
    127127                case 'error_scrape':
     
    206206
    207207                        if ( ! isset($_REQUEST['verify-delete']) ) {
    208208                                wp_enqueue_script('jquery');
    209                                 require_once('admin-header.php');
     209                                require_once('./admin-header.php');
    210210                                ?>
    211211                        <div class="wrap">
    212212                                <?php
     
    284284                                </div>
    285285                        </div>
    286286                                <?php
    287                                 require_once('admin-footer.php');
     287                                require_once('./admin-footer.php');
    288288                                exit;
    289289                        } //Endif verify-delete
    290290                        $delete_result = delete_plugins($plugins);
     
    318318}
    319319
    320320$title = __('Manage Plugins');
    321 require_once('admin-header.php');
     321require_once('./admin-header.php');
    322322
    323323$invalid = validate_active_plugins();
    324324if ( !empty($invalid) )
     
    766766</div>
    767767
    768768<?php
    769 include('admin-footer.php');
     769include('./admin-footer.php');
    770770?>
  • wp-admin/post-new.php

     
    77 */
    88
    99/** Load WordPress Administration Bootstrap */
    10 require_once('admin.php');
     10require_once('./admin.php');
    1111
    1212if ( !isset($_GET['post_type']) )
    1313        $post_type = 'post';
     
    4646</p>
    4747</div>
    4848<?php
    49         include('admin-footer.php');
     49        include('./admin-footer.php');
    5050        exit();
    5151}
    5252
     
    5454if ( current_user_can($post_type_object->edit_type_cap) ) {
    5555        $post = get_default_post_to_edit( $post_type, true );
    5656        $post_ID = $post->ID;
    57         include('edit-form-advanced.php');
     57        include('./edit-form-advanced.php');
    5858}
    5959
    60 include('admin-footer.php');
     60include('./admin-footer.php');
    6161?>
  • wp-admin/post.php

     
    99 */
    1010
    1111/** WordPress Administration Bootstrap */
    12 require_once('admin.php');
     12require_once('./admin.php');
    1313
    1414$parent_file = 'edit.php';
    1515$submenu_file = 'edit.php';
     
    189189        $title = sprintf(__('Edit %s'), $post_type_object->singular_label);
    190190        $post = get_post_to_edit($post_id);
    191191
    192         include('edit-form-advanced.php');
     192        include('./edit-form-advanced.php');
    193193
    194194        break;
    195195
     
    278278        exit();
    279279        break;
    280280} // end switch
    281 include('admin-footer.php');
     281include('./admin-footer.php');
    282282?>
  • wp-admin/press-this.php

     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once('admin.php');
     10require_once('./admin.php');
    1111header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
    1212
    1313if ( ! current_user_can('edit_posts') )
  • wp-admin/profile.php

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

     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once('admin.php');
     10require_once('./admin.php');
    1111
    1212wp_enqueue_script('list-revisions');
    1313
     
    4949        // If we're comparing a revision to itself, redirect to the 'view' page for that revision or the edit page for that post
    5050        if ( $left_revision->ID == $right_revision->ID ) {
    5151                $redirect = get_edit_post_link( $left_revision->ID );
    52                 include( 'js/revisions-js.php' );
     52                include( './js/revisions-js.php' );
    5353                break;
    5454        }
    5555
     
    142142else
    143143        $parent_file = $submenu_file = 'edit.php';
    144144
    145 require_once( 'admin-header.php' );
     145require_once( './admin-header.php' );
    146146
    147147?>
    148148
     
    218218
    219219<?php
    220220
    221 require_once( 'admin-footer.php' );
     221require_once( './admin-footer.php' );
  • wp-admin/sidebar.php

     
    1313$mode = 'sidebar';
    1414
    1515/** WordPress Administration Bootstrap */
    16 require_once('admin.php');
     16require_once('./admin.php');
    1717
    1818if ( ! current_user_can('edit_posts') )
    1919        wp_die(__('Cheatin&#8217; uh?'));
  • wp-admin/theme-editor.php

     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once('admin.php');
     10require_once('./admin.php');
    1111
    1212if ( !current_user_can('edit_themes') )
    1313        wp_die('<p>'.__('You do not have sufficient permissions to edit templates for this blog.').'</p>');
     
    7979
    8080default:
    8181
    82         require_once('admin-header.php');
     82        require_once('./admin-header.php');
    8383
    8484        update_recently_edited($file);
    8585
     
    240240break;
    241241}
    242242
    243 include("admin-footer.php");
     243include("./admin-footer.php");
  • wp-admin/theme-install.php

     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once('admin.php');
     10require_once('./admin.php');
    1111
    1212if ( ! current_user_can('install_themes') )
    1313        wp_die(__('You do not have sufficient permissions to install themes on this blog.'));
     
    5555
    5656add_contextual_help($current_screen, plugins_search_help());
    5757
    58 include('admin-header.php');
     58include('./admin-header.php');
    5959?>
    6060<div class="wrap">
    6161<?php screen_icon(); ?>
     
    7676        <?php do_action('install_themes_' . $tab, $paged); ?>
    7777</div>
    7878<?php
    79 include('admin-footer.php');
     79include('./admin-footer.php');
  • wp-admin/themes.php

     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once('admin.php');
     10require_once('./admin.php');
    1111
    1212if ( !current_user_can('switch_themes') )
    1313        wp_die( __( 'Cheatin&#8217; uh?' ) );
     
    4242add_thickbox();
    4343wp_enqueue_script( 'theme-preview' );
    4444
    45 require_once('admin-header.php');
     45require_once('./admin-header.php');
    4646if ( is_multisite() && current_user_can('edit_themes') ) {
    4747        ?><div id="message0" class="updated fade"><p><?php _e('Administrator: new themes must be activated in the <a href="ms-themes.php">Themes Admin</a> page before they appear here.'); ?></p></div><?php
    4848}
     
    308308?>
    309309</div>
    310310
    311 <?php require('admin-footer.php'); ?>
     311<?php require('./admin-footer.php'); ?>
  • wp-admin/tools.php

     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once('admin.php');
     10require_once('./admin.php');
    1111
    1212$title = __('Tools');
    1313wp_enqueue_script( 'wp-gears' );
    1414
    15 require_once('admin-header.php');
     15require_once('./admin-header.php');
    1616
    1717?>
    1818<div class="wrap">
     
    102102?>
    103103</div>
    104104<?php
    105 include('admin-footer.php');
     105include('./admin-footer.php');
    106106?>
  • wp-admin/update-core.php

     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once('admin.php');
     10require_once('./admin.php');
    1111
    1212if ( ! current_user_can('update_plugins') )
    1313        wp_die(__('You do not have sufficient permissions to update plugins for this blog.'));
     
    376376
    377377if ( 'upgrade-core' == $action ) {
    378378        wp_version_check();
    379         require_once('admin-header.php');
     379        require_once('./admin-header.php');
    380380        core_upgrade_preamble();
    381381} elseif ( 'do-core-upgrade' == $action || 'do-core-reinstall' == $action ) {
    382382        check_admin_referer('upgrade-core');
     
    388388        elseif ( isset( $_POST['undismiss'] ) )
    389389                do_undismiss_core_update();
    390390
    391         require_once('admin-header.php');
     391        require_once('./admin-header.php');
    392392        if ( 'do-core-reinstall' == $action )
    393393                $reinstall = true;
    394394        else
     
    414414
    415415        $title = __('Update Plugins');
    416416
    417         require_once('admin-header.php');
     417        require_once('./admin-header.php');
    418418        echo '<div class="wrap">';
    419419        screen_icon('plugins');
    420420        echo '<h2>' . esc_html__('Update Plugins') . '</h2>';
     
    437437
    438438        $title = __('Update Themes');
    439439
    440         require_once('admin-header.php');
     440        require_once('./admin-header.php');
    441441        echo '<div class="wrap">';
    442442        screen_icon('themes');
    443443        echo '<h2>' . esc_html__('Update Themes') . '</h2>';
     
    445445        echo '</div>';
    446446}
    447447
    448 include('admin-footer.php');
     448include('./admin-footer.php');
  • wp-admin/update.php

     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once('admin.php');
     10require_once('./admin.php');
    1111
    1212include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
    1313
     
    5252                $title = __('Upgrade Plugin');
    5353                $parent_file = 'plugins.php';
    5454                $submenu_file = 'plugins.php';
    55                 require_once('admin-header.php');
     55                require_once('./admin-header.php');
    5656
    5757                $nonce = 'upgrade-plugin_' . $plugin;
    5858                $url = 'update.php?action=upgrade-plugin&plugin=' . $plugin;
     
    6060                $upgrader = new Plugin_Upgrader( new Plugin_Upgrader_Skin( compact('title', 'nonce', 'url', 'plugin') ) );
    6161                $upgrader->upgrade($plugin);
    6262
    63                 include('admin-footer.php');
     63                include('./admin-footer.php');
    6464
    6565        } elseif ('activate-plugin' == $action ) {
    6666                if ( ! current_user_can('update_plugins') )
     
    105105                $title = __('Plugin Install');
    106106                $parent_file = 'plugins.php';
    107107                $submenu_file = 'plugin-install.php';
    108                 require_once('admin-header.php');
     108                require_once('./admin-header.php');
    109109
    110110                $title = sprintf( __('Installing Plugin: %s'), $api->name . ' ' . $api->version );
    111111                $nonce = 'install-plugin_' . $plugin;
     
    115115                $upgrader = new Plugin_Upgrader( new Plugin_Installer_Skin( compact('title', 'url', 'nonce', 'plugin', 'api') ) );
    116116                $upgrader->install($api->download_link);
    117117
    118                 include('admin-footer.php');
     118                include('./admin-footer.php');
    119119
    120120        } elseif ( 'upload-plugin' == $action ) {
    121121
     
    129129                $title = __('Upload Plugin');
    130130                $parent_file = 'plugins.php';
    131131                $submenu_file = 'plugin-install.php';
    132                 require_once('admin-header.php');
     132                require_once('./admin-header.php');
    133133
    134134                $title = sprintf( __('Installing Plugin from uploaded file: %s'), basename( $file_upload->filename ) );
    135135                $nonce = 'plugin-upload';
     
    139139                $upgrader = new Plugin_Upgrader( new Plugin_Installer_Skin( compact('type', 'title', 'nonce', 'url') ) );
    140140                $upgrader->install( $file_upload->package );
    141141
    142                 include('admin-footer.php');
     142                include('./admin-footer.php');
    143143
    144144        } elseif ( 'upgrade-theme' == $action ) {
    145145
     
    153153                $title = __('Upgrade Theme');
    154154                $parent_file = 'themes.php';
    155155                $submenu_file = 'themes.php';
    156                 require_once('admin-header.php');
     156                require_once('./admin-header.php');
    157157
    158158                $nonce = 'upgrade-theme_' . $theme;
    159159                $url = 'update.php?action=upgrade-theme&theme=' . $theme;
     
    161161                $upgrader = new Theme_Upgrader( new Theme_Upgrader_Skin( compact('title', 'nonce', 'url', 'theme') ) );
    162162                $upgrader->upgrade($theme);
    163163
    164                 include('admin-footer.php');
     164                include('./admin-footer.php');
    165165        } elseif ( 'update-selected-themes' == $action ) {
    166166                if ( ! current_user_can( 'update_themes' ) )
    167167                        wp_die( __( 'You do not have sufficient permissions to update themes for this blog.' ) );
     
    206206                $title = __('Install Themes');
    207207                $parent_file = 'themes.php';
    208208                $submenu_file = 'themes.php';
    209                 require_once('admin-header.php');
     209                require_once('./admin-header.php');
    210210
    211211                $title = sprintf( __('Installing Theme: %s'), $api->name . ' ' . $api->version );
    212212                $nonce = 'install-theme_' . $theme;
     
    216216                $upgrader = new Theme_Upgrader( new Theme_Installer_Skin( compact('title', 'url', 'nonce', 'plugin', 'api') ) );
    217217                $upgrader->install($api->download_link);
    218218
    219                 include('admin-footer.php');
     219                include('./admin-footer.php');
    220220
    221221        } elseif ( 'upload-theme' == $action ) {
    222222
     
    232232                $submenu_file = 'theme-install.php';
    233233                add_thickbox();
    234234                wp_enqueue_script('theme-preview');
    235                 require_once('admin-header.php');
     235                require_once('./admin-header.php');
    236236
    237237                $title = sprintf( __('Installing Theme from uploaded file: %s'), basename( $file_upload->filename ) );
    238238                $nonce = 'theme-upload';
     
    242242                $upgrader = new Theme_Upgrader( new Theme_Installer_Skin( compact('type', 'title', 'nonce', 'url') ) );
    243243                $upgrader->install( $file_upload->package );
    244244
    245                 include('admin-footer.php');
     245                include('./admin-footer.php');
    246246
    247247        } else {
    248248                do_action('update-custom_' . $action);
  • wp-admin/upload.php

     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once('admin.php');
     10require_once('./admin.php');
    1111wp_enqueue_script( 'wp-ajax-response' );
    1212wp_enqueue_script( 'jquery-ui-draggable' );
    1313
     
    161161$is_trash = ( isset($_GET['status']) && $_GET['status'] == 'trash' );
    162162
    163163wp_enqueue_script('media');
    164 require_once('admin-header.php');
     164require_once('./admin-header.php');
    165165?>
    166166
    167167<div class="wrap">
     
    448448<?php
    449449
    450450} else {
    451         include( 'edit-attachment-rows.php' );
     451        include( './edit-attachment-rows.php' );
    452452} ?>
    453453
    454454<div id="ajax-response"></div>
     
    492492</div>
    493493
    494494<?php
    495 include('admin-footer.php');
     495include('./admin-footer.php');
  • wp-admin/user-edit.php

     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once('admin.php');
     10require_once('./admin.php');
    1111
    1212if ( !defined('IS_PROFILE_PAGE') )
    1313        define('IS_PROFILE_PAGE', false);
     
    369369break;
    370370}
    371371
    372 include('admin-footer.php');
     372include('./admin-footer.php');
    373373?>
  • wp-admin/user-new.php

     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once('admin.php');
     10require_once('./admin.php');
    1111
    1212if ( !current_user_can('create_users') )
    1313        wp_die(__('Cheatin&#8217; uh?'));
     
    245245
    246246</div>
    247247<?php
    248 include('admin-footer.php');
     248include('./admin-footer.php');
    249249?>
  • wp-admin/users.php

     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once('admin.php');
     10require_once('./admin.php');
    1111
    1212/** WordPress Registration API */
    1313require_once( ABSPATH . WPINC . '/registration.php');
     
    202202                exit;
    203203        }
    204204
    205         include('admin-header.php');
     205        include('./admin-header.php');
    206206
    207207        $usersearch = isset($_GET['usersearch']) ? $_GET['usersearch'] : null;
    208208        $userspage = isset($_GET['userspage']) ? $_GET['userspage'] : null;
     
    415415
    416416} // end of the $doaction switch
    417417
    418 include('admin-footer.php');
     418include('./admin-footer.php');
    419419?>
  • wp-admin/widgets.php

     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once( 'admin.php' );
     10require_once( './admin.php' );
    1111
    1212/** WordPress Administration Widgets API */
    1313require_once(ABSPATH . 'wp-admin/includes/widgets.php');
     
    128128
    129129if ( count($wp_registered_sidebars) == 1 ) {
    130130        // If only "wp_inactive_widgets" is defined the theme has no sidebars, die.
    131         require_once( 'admin-header.php' );
     131        require_once( './admin-header.php' );
    132132?>
    133133
    134134        <div class="wrap">
     
    141141        </div>
    142142
    143143<?php
    144         require_once( 'admin-footer.php' );
     144        require_once( './admin-footer.php' );
    145145        exit;
    146146}
    147147
     
    252252        $width = ' style="width:' . max($control['width'], 350) . 'px"';
    253253        $key = isset($_GET['key']) ? (int) $_GET['key'] : 0;
    254254
    255         require_once( 'admin-header.php' ); ?>
     255        require_once( './admin-header.php' ); ?>
    256256        <div class="wrap">
    257257        <?php screen_icon(); ?>
    258258        <h2><?php echo esc_html( $title ); ?></h2>
     
    317317        </div>
    318318        </div>
    319319<?php
    320         require_once( 'admin-footer.php' );
     320        require_once( './admin-footer.php' );
    321321        exit;
    322322}
    323323
     
    330330        __('Error in displaying the widget settings form.')
    331331);
    332332
    333 require_once( 'admin-header.php' ); ?>
     333require_once( './admin-header.php' ); ?>
    334334
    335335<div class="wrap">
    336336<?php screen_icon(); ?>
     
    403403
    404404<?php
    405405do_action( 'sidebar_admin_page' );
    406 require_once( 'admin-footer.php' );
     406require_once( './admin-footer.php' );
  • wp-includes/compat.php

     
    129129                global $wp_json;
    130130
    131131                if ( !is_a($wp_json, 'Services_JSON') ) {
    132                         require_once( 'class-json.php' );
     132                        require_once( './class-json.php' );
    133133                        $wp_json = new Services_JSON();
    134134                }
    135135
     
    142142                global $wp_json;
    143143
    144144                if ( !is_a($wp_json, 'Services_JSON') ) {
    145                         require_once( 'class-json.php' );
     145                        require_once( './class-json.php' );
    146146                        $wp_json = new Services_JSON();
    147147                }
    148148
  • wp-includes/media.php

     
    13291329 * @return string The original URL on failure or the embed HTML on success.
    13301330 */
    13311331function wp_oembed_get( $url, $args = '' ) {
    1332         require_once( 'class-oembed.php' );
     1332        require_once( './class-oembed.php' );
    13331333        $oembed = _wp_oembed_get_object();
    13341334        return $oembed->get_html( $url, $args );
    13351335}
     
    13471347 * @param boolean $regex Whether the $format parameter is in a regex format.
    13481348 */
    13491349function wp_oembed_add_provider( $format, $provider, $regex = false ) {
    1350         require_once( 'class-oembed.php' );
     1350        require_once( './class-oembed.php' );
    13511351        $oembed = _wp_oembed_get_object();
    13521352        $oembed->providers[$format] = array( $provider, $regex );
    13531353}
  • wp-signup.php

     
    55
    66add_action( 'wp_head', 'signuppageheaders' ) ;
    77
    8 require( 'wp-blog-header.php' );
     8require( './wp-blog-header.php' );
    99require_once( ABSPATH . WPINC . '/registration.php' );
    1010
    1111if ( is_array( get_site_option( 'illegal_names' )) && isset( $_GET[ 'new' ] ) && in_array( $_GET[ 'new' ], get_site_option( 'illegal_names' ) ) == true ) {