WordPress.org

Make WordPress Core

Changeset 14139


Ignore:
Timestamp:
04/18/10 06:14:45 (4 years ago)
Author:
nacin
Message:

Use relative paths when including files, avoiding include_path. fixes #12594, props sorich87.

Location:
trunk
Files:
50 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-activate.php

    r14070 r14139  
    55require( dirname(__FILE__) . '/wp-load.php' ); 
    66 
    7 require( 'wp-blog-header.php' ); 
     7require( './wp-blog-header.php' ); 
    88 
    99if ( !is_multisite() ) { 
  • trunk/wp-admin/admin-ajax.php

    r14124 r14139  
    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(); 
  • trunk/wp-admin/admin-header.php

    r13833 r14139  
    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(); 
  • trunk/wp-admin/async-upload.php

    r11904 r14139  
    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')); 
  • trunk/wp-admin/comment.php

    r13571 r14139  
    88 
    99/** Load WordPress Bootstrap */ 
    10 require_once('admin.php'); 
     10require_once('./admin.php'); 
    1111 
    1212$parent_file = 'edit-comments.php'; 
     
    3737function comment_footer_die( $msg ) { 
    3838    echo "<div class='wrap'><p>$msg</p></div>"; 
    39     include('admin-footer.php'); 
     39    include('./admin-footer.php'); 
    4040    die; 
    4141} 
     
    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'] ); 
     
    6262    $comment = get_comment_to_edit( $comment_id ); 
    6363 
    64     include('edit-form-comment.php'); 
     64    include('./edit-form-comment.php'); 
    6565 
    6666    break; 
     
    8989    } 
    9090 
    91     require_once('admin-header.php'); 
     91    require_once('./admin-header.php'); 
    9292 
    9393    $formaction    = $action . 'comment'; 
     
    277277} // end switch 
    278278 
    279 include('admin-footer.php'); 
     279include('./admin-footer.php'); 
    280280 
    281281?> 
  • trunk/wp-admin/edit-comments.php

    r13770 r14139  
    88 
    99/** WordPress Administration Bootstrap */ 
    10 require_once('admin.php'); 
     10require_once('./admin.php'); 
    1111 
    1212if ( !current_user_can('edit_posts') ) 
     
    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']); 
     
    469469wp_comment_reply('-1', true, 'detail'); 
    470470wp_comment_trashnotice(); 
    471 include('admin-footer.php'); ?> 
     471include('./admin-footer.php'); ?> 
  • trunk/wp-admin/edit-form-advanced.php

    r14137 r14139  
    103103 
    104104// All meta boxes should be defined and added before the first do_meta_boxes() call (or potentially during the do_meta_boxes action). 
    105 require_once('includes/meta-boxes.php'); 
     105require_once('./includes/meta-boxes.php'); 
    106106 
    107107add_meta_box('submitdiv', __('Publish'), 'post_submit_meta_box', $post_type, 'side', 'core'); 
     
    166166add_contextual_help($current_screen, drag_drop_help()); 
    167167 
    168 require_once('admin-header.php'); 
     168require_once('./admin-header.php'); 
    169169?> 
    170170 
  • trunk/wp-admin/edit-link-categories.php

    r13852 r14139  
    88 
    99/** WordPress Administration Bootstrap */ 
    10 require_once('admin.php'); 
     10require_once('./admin.php'); 
    1111 
    1212// Handle bulk actions 
     
    228228 
    229229<?php inline_edit_term_row('edit-link-categories', 'link_category'); ?> 
    230 <?php include('admin-footer.php'); ?> 
     230<?php include('./admin-footer.php'); ?> 
  • trunk/wp-admin/edit-link-form.php

    r14044 r14139  
    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'); 
  • trunk/wp-admin/edit-tags.php

    r13876 r14139  
    88 
    99/** WordPress Administration Bootstrap */ 
    10 require_once('admin.php'); 
     10require_once('./admin.php'); 
    1111 
    1212wp_reset_vars( array('action', 'tag', 'taxonomy', 'post_type') ); 
     
    123123 
    124124    $tag = get_term($tag_ID, $taxonomy, OBJECT, 'edit'); 
    125     include('edit-tag-form.php'); 
     125    include('./edit-tag-form.php'); 
    126126 
    127127break; 
     
    403403} 
    404404 
    405 include('admin-footer.php'); 
    406  
    407 ?> 
     405include('./admin-footer.php'); 
     406 
     407?> 
  • trunk/wp-admin/edit.php

    r13987 r14139  
    88 
    99/** WordPress Administration Bootstrap */ 
    10 require_once('admin.php'); 
     10require_once('./admin.php'); 
    1111 
    1212if ( !isset($_GET['post_type']) ) 
     
    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']) ) 
     
    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"> 
     
    426426 
    427427<?php 
    428 include('admin-footer.php'); 
     428include('./admin-footer.php'); 
  • trunk/wp-admin/export.php

    r13733 r14139  
    1414 
    1515/** Load WordPress export API */ 
    16 require_once('includes/export.php'); 
     16require_once('./includes/export.php'); 
    1717$title = __('Export'); 
    1818 
  • trunk/wp-admin/index-extra.php

    r13409 r14139  
    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' ) ); 
  • trunk/wp-admin/index.php

    r12728 r14139  
    88 
    99/** Load WordPress Bootstrap */ 
    10 require_once('admin.php'); 
     10require_once('./admin.php'); 
    1111 
    1212/** Load WordPress dashboard API */ 
     
    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); 
  • trunk/wp-admin/link-add.php

    r11764 r14139  
    88 
    99/** Load WordPress Administration Bootstrap */ 
    10 require_once('admin.php'); 
     10require_once('./admin.php'); 
    1111 
    1212if ( ! current_user_can('manage_links') ) 
     
    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?> 
  • trunk/wp-admin/link-category.php

    r9967 r14139  
    1111 
    1212/** Load WordPress Administration Bootstrap */ 
    13 require_once('admin.php'); 
     13require_once('./admin.php'); 
    1414 
    1515wp_reset_vars(array('action', 'cat')); 
     
    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; 
  • trunk/wp-admin/link-manager.php

    r13770 r14139  
    279279 
    280280<?php 
    281 include('admin-footer.php'); 
     281include('./admin-footer.php'); 
  • trunk/wp-admin/media-new.php

    r9232 r14139  
    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?> 
  • trunk/wp-admin/media-upload.php

    r12007 r14139  
    1111 
    1212/** Load WordPress Administration Bootstrap */ 
    13 require_once('admin.php'); 
     13require_once('./admin.php'); 
    1414 
    1515if (!current_user_can('upload_files')) 
     
    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(); ?> 
     
    8787 
    8888<?php 
    89     include('admin-footer.php'); 
     89    include('./admin-footer.php'); 
    9090 
    9191} else { 
  • trunk/wp-admin/media.php

    r13521 r14139  
    88 
    99/** Load WordPress Administration Bootstrap */ 
    10 require_once('admin.php'); 
     10require_once('./admin.php'); 
    1111 
    1212$parent_file = 'upload.php'; 
     
    6868    wp_enqueue_style('imgareaselect'); 
    6969 
    70     require( 'admin-header.php' ); 
     70    require( './admin-header.php' ); 
    7171 
    7272    $parent_file = 'upload.php'; 
     
    115115<?php 
    116116 
    117     require( 'admin-footer.php' ); 
     117    require( './admin-footer.php' ); 
    118118 
    119119    exit; 
  • trunk/wp-admin/ms-upgrade-network.php

    r14070 r14139  
    7575</div> 
    7676 
    77 <?php include('admin-footer.php'); ?> 
     77<?php include('./admin-footer.php'); ?> 
  • trunk/wp-admin/nav-menus.php

    r14031 r14139  
    1111 
    1212/** Load WordPress Administration Bootstrap */ 
    13 require_once( 'admin.php' ); 
     13require_once( './admin.php' ); 
    1414 
    1515// Load all the nav menu interface functions 
     
    236236 
    237237// Get the admin header 
    238 require_once( 'admin-header.php' ); 
     238require_once( './admin-header.php' ); 
    239239?> 
    240240<div class="wrap"> 
     
    346346</div><!-- /#menu-item-settings--> 
    347347 
    348 <?php include( 'admin-footer.php' ); ?> 
     348<?php include( './admin-footer.php' ); ?> 
  • trunk/wp-admin/options-discussion.php

    r14070 r14139  
    88 
    99/** WordPress Administration Bootstrap */ 
    10 require_once('admin.php'); 
     10require_once('./admin.php'); 
    1111 
    1212if ( ! current_user_can( 'manage_options' ) ) 
     
    1616$parent_file = 'options-general.php'; 
    1717 
    18 include('admin-header.php'); 
     18include('./admin-header.php'); 
    1919?> 
    2020 
  • trunk/wp-admin/options-media.php

    r13750 r14139  
    88 
    99/** WordPress Administration Bootstrap */ 
    10 require_once('admin.php'); 
     10require_once('./admin.php'); 
    1111 
    1212if ( ! current_user_can( 'manage_options' ) ) 
     
    1616$parent_file = 'options-general.php'; 
    1717 
    18 include('admin-header.php'); 
     18include('./admin-header.php'); 
    1919 
    2020?> 
  • trunk/wp-admin/options-permalink.php

    r14051 r14139  
    88 
    99/** WordPress Administration Bootstrap */ 
    10 require_once('admin.php'); 
     10require_once('./admin.php'); 
    1111 
    1212if ( ! current_user_can( 'manage_options' ) ) 
     
    7171add_filter('admin_head', 'add_js'); 
    7272 
    73 include('admin-header.php'); 
     73include('./admin-header.php'); 
    7474 
    7575$home_path = get_home_path(); 
  • trunk/wp-admin/options-reading.php

    r13971 r14139  
    88 
    99/** WordPress Administration Bootstrap */ 
    10 require_once( 'admin.php' ); 
     10require_once( './admin.php' ); 
    1111 
    1212if ( ! current_user_can( 'manage_options' ) ) 
     
    1616$parent_file = 'options-general.php'; 
    1717 
    18 include( 'admin-header.php' ); 
     18include( './admin-header.php' ); 
    1919?> 
    2020 
  • trunk/wp-admin/options-writing.php

    r13754 r14139  
    88 
    99/** WordPress Administration Bootstrap */ 
    10 require_once('admin.php'); 
     10require_once('./admin.php'); 
    1111 
    1212if ( ! current_user_can( 'manage_options' ) ) 
     
    1616$parent_file = 'options-general.php'; 
    1717 
    18 include('admin-header.php'); 
     18include('./admin-header.php'); 
    1919?> 
    2020 
  • trunk/wp-admin/options.php

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

    r13859 r14139  
    88 
    99/** WordPress Administration Bootstrap */ 
    10 require_once('admin.php'); 
     10require_once('./admin.php'); 
    1111 
    1212if ( !current_user_can('edit_plugins') ) 
     
    103103    } 
    104104 
    105     require_once('admin-header.php'); 
     105    require_once('./admin-header.php'); 
    106106 
    107107    update_recently_edited(WP_PLUGIN_DIR . '/' . $file); 
     
    240240    break; 
    241241} 
    242 include("admin-footer.php"); 
     242include("./admin-footer.php"); 
  • trunk/wp-admin/plugin-install.php

    r12752 r14139  
    88 
    99/** WordPress Administration Bootstrap */ 
    10 require_once('admin.php'); 
     10require_once('./admin.php'); 
    1111 
    1212if ( ! current_user_can('install_plugins') ) 
     
    5555add_contextual_help($current_screen, plugins_search_help()); 
    5656 
    57 include('admin-header.php'); 
     57include('./admin-header.php'); 
    5858?> 
    5959<div class="wrap"> 
     
    7676</div> 
    7777<?php 
    78 include('admin-footer.php'); 
     78include('./admin-footer.php'); 
  • trunk/wp-admin/plugins.php

    r14003 r14139  
    88 
    99/** WordPress Administration Bootstrap */ 
    10 require_once('admin.php'); 
     10require_once('./admin.php'); 
    1111 
    1212if ( ! current_user_can( 'activate_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">'; 
     
    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; 
     
    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"> 
     
    285285            </div> 
    286286                <?php 
    287                 require_once('admin-footer.php'); 
     287                require_once('./admin-footer.php'); 
    288288                exit; 
    289289            } //Endif verify-delete 
     
    319319 
    320320$title = __('Manage Plugins'); 
    321 require_once('admin-header.php'); 
     321require_once('./admin-header.php'); 
    322322 
    323323$invalid = validate_active_plugins(); 
     
    777777 
    778778<?php 
    779 include('admin-footer.php'); 
    780 ?> 
     779include('./admin-footer.php'); 
     780?> 
  • trunk/wp-admin/post.php

    r14107 r14139  
    1010 
    1111/** WordPress Administration Bootstrap */ 
    12 require_once('admin.php'); 
     12require_once('./admin.php'); 
    1313 
    1414$parent_file = 'edit.php'; 
     
    186186    } 
    187187 
    188     include('edit-form-advanced.php'); 
     188    include('./edit-form-advanced.php'); 
    189189 
    190190    break; 
     
    275275    break; 
    276276} // end switch 
    277 include('admin-footer.php'); 
     277include('./admin-footer.php'); 
    278278?> 
  • trunk/wp-admin/press-this.php

    r14069 r14139  
    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 
  • trunk/wp-admin/profile.php

    r8645 r14139  
    1616 
    1717/** Load User Editing Page */ 
    18 require_once('user-edit.php'); 
     18require_once('./user-edit.php'); 
    1919?> 
  • trunk/wp-admin/revision.php

    r13209 r14139  
    88 
    99/** WordPress Administration Bootstrap */ 
    10 require_once('admin.php'); 
     10require_once('./admin.php'); 
    1111 
    1212wp_enqueue_script('list-revisions'); 
     
    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    } 
     
    143143    $parent_file = $submenu_file = 'edit.php'; 
    144144 
    145 require_once( 'admin-header.php' ); 
     145require_once( './admin-header.php' ); 
    146146 
    147147?> 
     
    219219<?php 
    220220 
    221 require_once( 'admin-footer.php' ); 
     221require_once( './admin-footer.php' ); 
  • trunk/wp-admin/sidebar.php

    r11204 r14139  
    1414 
    1515/** WordPress Administration Bootstrap */ 
    16 require_once('admin.php'); 
     16require_once('./admin.php'); 
    1717 
    1818if ( ! current_user_can('edit_posts') ) 
  • trunk/wp-admin/theme-editor.php

    r13191 r14139  
    88 
    99/** WordPress Administration Bootstrap */ 
    10 require_once('admin.php'); 
     10require_once('./admin.php'); 
    1111 
    1212if ( !current_user_can('edit_themes') ) 
     
    8080default: 
    8181 
    82     require_once('admin-header.php'); 
     82    require_once('./admin-header.php'); 
    8383 
    8484    update_recently_edited($file); 
     
    241241} 
    242242 
    243 include("admin-footer.php"); 
     243include("./admin-footer.php"); 
  • trunk/wp-admin/theme-install.php

    r13533 r14139  
    88 
    99/** WordPress Administration Bootstrap */ 
    10 require_once('admin.php'); 
     10require_once('./admin.php'); 
    1111 
    1212if ( ! current_user_can('install_themes') ) 
     
    5656add_contextual_help($current_screen, plugins_search_help()); 
    5757 
    58 include('admin-header.php'); 
     58include('./admin-header.php'); 
    5959?> 
    6060<div class="wrap"> 
     
    7777</div> 
    7878<?php 
    79 include('admin-footer.php'); 
     79include('./admin-footer.php'); 
  • trunk/wp-admin/themes.php

    r14046 r14139  
    88 
    99/** WordPress Administration Bootstrap */ 
    10 require_once('admin.php'); 
     10require_once('./admin.php'); 
    1111 
    1212if ( !current_user_can('switch_themes') ) 
     
    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"><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 
     
    314314</div> 
    315315 
    316 <?php require('admin-footer.php'); ?> 
     316<?php require('./admin-footer.php'); ?> 
  • trunk/wp-admin/tools.php

    r13981 r14139  
    88 
    99/** WordPress Administration Bootstrap */ 
    10 require_once('admin.php'); 
     10require_once('./admin.php'); 
    1111 
    1212$title = __('Tools'); 
    1313 
    14 require_once('admin-header.php'); 
     14require_once('./admin-header.php'); 
    1515 
    1616?> 
     
    4646</div> 
    4747<?php 
    48 include('admin-footer.php'); 
     48include('./admin-footer.php'); 
    4949?> 
  • trunk/wp-admin/update-core.php

    r14070 r14139  
    88 
    99/** WordPress Administration Bootstrap */ 
    10 require_once('admin.php'); 
     10require_once('./admin.php'); 
    1111 
    1212if ( ! current_user_can('update_plugins') ) 
     
    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 ) { 
     
    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; 
     
    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'); 
     
    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'); 
     
    446446} 
    447447 
    448 include('admin-footer.php'); 
     448include('./admin-footer.php'); 
  • trunk/wp-admin/update.php

    r14017 r14139  
    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'; 
     
    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; 
     
    6161        $upgrader->upgrade($plugin); 
    6262 
    63         include('admin-footer.php'); 
     63        include('./admin-footer.php'); 
    6464 
    6565    } elseif ('activate-plugin' == $action ) { 
     
    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 ); 
     
    116116        $upgrader->install($api->download_link); 
    117117 
    118         include('admin-footer.php'); 
     118        include('./admin-footer.php'); 
    119119 
    120120    } elseif ( 'upload-plugin' == $action ) { 
     
    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 ) ); 
     
    140140        $upgrader->install( $file_upload->package ); 
    141141 
    142         include('admin-footer.php'); 
     142        include('./admin-footer.php'); 
    143143 
    144144    } elseif ( 'upgrade-theme' == $action ) { 
     
    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; 
     
    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' ) ) 
     
    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 ); 
     
    217217        $upgrader->install($api->download_link); 
    218218 
    219         include('admin-footer.php'); 
     219        include('./admin-footer.php'); 
    220220 
    221221    } elseif ( 'upload-theme' == $action ) { 
     
    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 ) ); 
     
    243243        $upgrader->install( $file_upload->package ); 
    244244 
    245         include('admin-footer.php'); 
     245        include('./admin-footer.php'); 
    246246 
    247247    } else { 
  • trunk/wp-admin/upload.php

    r13978 r14139  
    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' ); 
     
    162162 
    163163wp_enqueue_script('media'); 
    164 require_once('admin-header.php'); 
     164require_once('./admin-header.php'); 
    165165?> 
    166166 
     
    449449 
    450450} else { 
    451     include( 'edit-attachment-rows.php' ); 
     451    include( './edit-attachment-rows.php' ); 
    452452} ?> 
    453453 
     
    493493 
    494494<?php 
    495 include('admin-footer.php'); 
     495include('./admin-footer.php'); 
  • trunk/wp-admin/user-edit.php

    r14106 r14139  
    88 
    99/** WordPress Administration Bootstrap */ 
    10 require_once('admin.php'); 
     10require_once('./admin.php'); 
    1111 
    1212wp_reset_vars(array('action', 'redirect', 'profile', 'user_id', 'wp_http_referer')); 
     
    375375} 
    376376 
    377 include('admin-footer.php'); 
    378 ?> 
     377include('./admin-footer.php'); 
     378?> 
  • trunk/wp-admin/user-new.php

    r14110 r14139  
    88 
    99/** WordPress Administration Bootstrap */ 
    10 require_once('admin.php'); 
     10require_once('./admin.php'); 
    1111 
    1212if ( !current_user_can('create_users') ) 
     
    256256</div> 
    257257<?php 
    258 include('admin-footer.php'); 
    259 ?> 
     258include('./admin-footer.php'); 
     259?> 
  • trunk/wp-admin/users.php

    r13961 r14139  
    88 
    99/** WordPress Administration Bootstrap */ 
    10 require_once('admin.php'); 
     10require_once('./admin.php'); 
    1111 
    1212/** WordPress Registration API */ 
     
    207207    } 
    208208 
    209     include('admin-header.php'); 
     209    include('./admin-header.php'); 
    210210 
    211211    $usersearch = isset($_GET['usersearch']) ? $_GET['usersearch'] : null; 
     
    422422} // end of the $doaction switch 
    423423 
    424 include('admin-footer.php'); 
     424include('./admin-footer.php'); 
    425425?> 
  • trunk/wp-admin/widgets.php

    r13525 r14139  
    88 
    99/** WordPress Administration Bootstrap */ 
    10 require_once( 'admin.php' ); 
     10require_once( './admin.php' ); 
    1111 
    1212/** WordPress Administration Widgets API */ 
     
    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 
     
    142142 
    143143<?php 
    144     require_once( 'admin-footer.php' ); 
     144    require_once( './admin-footer.php' ); 
    145145    exit; 
    146146} 
     
    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(); ?> 
     
    318318    </div> 
    319319<?php 
    320     require_once( 'admin-footer.php' ); 
     320    require_once( './admin-footer.php' ); 
    321321    exit; 
    322322} 
     
    331331); 
    332332 
    333 require_once( 'admin-header.php' ); ?> 
     333require_once( './admin-header.php' ); ?> 
    334334 
    335335<div class="wrap"> 
     
    404404<?php 
    405405do_action( 'sidebar_admin_page' ); 
    406 require_once( 'admin-footer.php' ); 
     406require_once( './admin-footer.php' ); 
  • trunk/wp-includes/compat.php

    r13863 r14139  
    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        } 
     
    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        } 
  • trunk/wp-includes/media.php

    r14105 r14139  
    13331333 */ 
    13341334function wp_oembed_get( $url, $args = '' ) { 
    1335     require_once( 'class-oembed.php' ); 
     1335    require_once( './class-oembed.php' ); 
    13361336    $oembed = _wp_oembed_get_object(); 
    13371337    return $oembed->get_html( $url, $args ); 
     
    13511351 */ 
    13521352function wp_oembed_add_provider( $format, $provider, $regex = false ) { 
    1353     require_once( 'class-oembed.php' ); 
     1353    require_once( './class-oembed.php' ); 
    13541354    $oembed = _wp_oembed_get_object(); 
    13551355    $oembed->providers[$format] = array( $provider, $regex ); 
  • trunk/wp-signup.php

    r14070 r14139  
    66add_action( 'wp_head', 'signuppageheaders' ) ; 
    77 
    8 require( 'wp-blog-header.php' ); 
     8require( './wp-blog-header.php' ); 
    99require_once( ABSPATH . WPINC . '/registration.php' ); 
    1010 
Note: See TracChangeset for help on using the changeset viewer.