~canonical-sysadmins/wordpress/4.2.4

« back to all changes in this revision

Viewing changes to wp-admin/update.php

  • Committer: Paul Gear
  • Date: 2015-04-24 01:35:20 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: paul.gear@canonical.com-20150424013520-w4p9ksth76zh6opw
Merge new upstream release 4.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
201
201
                if ( ! current_user_can('install_themes') )
202
202
                        wp_die( __( 'You do not have sufficient permissions to install themes on this site.' ) );
203
203
 
204
 
                include_once( ABSPATH . 'wp-admin/includes/theme-install.php' ); //for themes_api..
 
204
                include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); //for themes_api..
205
205
 
206
206
                check_admin_referer( 'install-theme_' . $theme );
207
207
                $api = themes_api('theme_information', array('slug' => $theme, 'fields' => array('sections' => false, 'tags' => false) ) ); //Save on a bit of bandwidth.