Make WordPress Core


Ignore:
Timestamp:
08/31/2016 04:30:48 PM (8 years ago)
Author:
wonderboymusic
Message:

Bootstrap: do not go gentle into that good night r38411, r38412, and parts of r38389.

See #36335.

File:
1 edited

Legend:

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

    r38411 r38470  
    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.