WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/27/2016 02:36:42 PM (5 years ago)
Author:
dd32
Message:

Bootstrap: Revert [38399] as it's broken /build/ and subsequently core.svn.wordpress.org.

The generated classmaps reference /src/ files and operates in the assumption that the base directory is one level above wp-settings.php, which it isn't after our build processes are run.

See #36335

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/update.php

    r38399 r38402  
    1212/** WordPress Administration Bootstrap */
    1313require_once( dirname( __FILE__ ) . '/admin.php' );
     14
     15include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
    1416
    1517if ( isset($_GET['action']) ) {
     
    217219            wp_die( __( 'Sorry, you are not allowed to install themes on this site.' ) );
    218220
     221        include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); //for themes_api..
     222
    219223        check_admin_referer( 'install-theme_' . $theme );
    220224        $api = themes_api('theme_information', array('slug' => $theme, 'fields' => array('sections' => false, 'tags' => false) ) ); //Save on a bit of bandwidth.
Note: See TracChangeset for help on using the changeset viewer.