From 73183634d2f0424311258ba63d8d0814fcbdb6e2 Mon Sep 17 00:00:00 2001 From: Daniel Rey Lopez Date: Tue, 12 Sep 2017 15:49:46 -0700 Subject: [PATCH] Removed unused "background" argument, since it's always true --- includes/admin/class-wc-admin-setup-wizard.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/includes/admin/class-wc-admin-setup-wizard.php b/includes/admin/class-wc-admin-setup-wizard.php index 96a29d00d03..ad939f1b544 100644 --- a/includes/admin/class-wc-admin-setup-wizard.php +++ b/includes/admin/class-wc-admin-setup-wizard.php @@ -451,18 +451,14 @@ class WC_Admin_Setup_Wizard { * * @param string $plugin_id Plugin id used for background install. * @param array $plugin_info Plugin info array containing at least main file and repo slug. - * @param bool $background Optional. Whether or not to queue the install in the background. */ - protected function install_plugin( $plugin_id, $plugin_info, $background = true ) { + protected function install_plugin( $plugin_id, $plugin_info ) { if ( ! empty( $plugin_info['file'] ) && is_plugin_active( $plugin_info['file'] ) ) { return; } - if ( $background ) { - wp_schedule_single_event( time() + 10, 'woocommerce_plugin_background_installer', array( $plugin_id, $plugin_info ) ); - } else { - WC_Install::background_installer( $plugin_id, $plugin_info ); - } + wp_schedule_single_event( time() + 10, 'woocommerce_plugin_background_installer', array( $plugin_id, $plugin_info ) ); + // WC_Install::background_installer( $plugin_id, $plugin_info ); } /**