diff --git a/wp-admin/includes/ajax-actions.php b/wp-admin/includes/ajax-actions.php index c5718aeb50..1c84d42009 100644 --- a/wp-admin/includes/ajax-actions.php +++ b/wp-admin/includes/ajax-actions.php @@ -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 ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 7b21893786..0326f314ab 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.