WordPress 4.2
[autoinstalls/wordpress.git] / wp-admin / update.php
index 6ded7a7d7a7c39a49d6311d89f49917ffe9a629d..4cfdeca6c6b6703d2db4214e3bed66fb4f608812 100644 (file)
@@ -201,7 +201,7 @@ if ( isset($_GET['action']) ) {
                if ( ! current_user_can('install_themes') )
                        wp_die( __( 'You do not have sufficient permissions to install themes on this site.' ) );
 
-               include_once( ABSPATH . 'wp-admin/includes/theme-install.php' ); //for themes_api..
+               include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); //for themes_api..
 
                check_admin_referer( 'install-theme_' . $theme );
                $api = themes_api('theme_information', array('slug' => $theme, 'fields' => array('sections' => false, 'tags' => false) ) ); //Save on a bit of bandwidth.