WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/18/2010 06:14:45 AM (12 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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' );
Note: See TracChangeset for help on using the changeset viewer.