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