Shiny Updates: Fix a PHP warning when installing new plugins.

Props lgladdy for the initial patch.

See #29820


Built from https://develop.svn.wordpress.org/trunk@31345


git-svn-id: http://core.svn.wordpress.org/trunk@31326 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Gary Pendergast 2015-02-06 00:34:21 +00:00
parent 4169032f6f
commit 5e4d135411
2 changed files with 2 additions and 2 deletions

View File

@ -2868,7 +2868,7 @@ function wp_ajax_install_plugin() {
wp_send_json_error( $status );
}
$plugin_status = install_plugin_install_status( array( 'slug' => sanitize_key( $_POST['slug'] ) ) );
$plugin_status = install_plugin_install_status( $api );
activate_plugin( $plugin_status['file'] );
wp_send_json_success( $status );

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.2-alpha-31344';
$wp_version = '4.2-alpha-31345';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.