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:
parent
4169032f6f
commit
5e4d135411
|
@ -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 );
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue