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