mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Shiny Updates: Fix a PHP warning when installing new plugins.
Props lgladdy for the initial patch. See #29820 git-svn-id: https://develop.svn.wordpress.org/trunk@31345 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
77aebc6d71
commit
ba2beaf37d
@ -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 );
|
||||
|
||||
Loading…
Reference in New Issue
Block a user