Merge pull request #22799 from woocommerce/remove/cron-plugin-theme-installer

Remove old plugin/theme background installer hooks
This commit is contained in:
Mike Jolley 2019-02-27 11:38:32 +00:00 committed by GitHub
commit f90daea1d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -144,8 +144,6 @@ class WC_Install {
add_filter( 'plugin_row_meta', array( __CLASS__, 'plugin_row_meta' ), 10, 2 );
add_filter( 'wpmu_drop_tables', array( __CLASS__, 'wpmu_drop_tables' ) );
add_filter( 'cron_schedules', array( __CLASS__, 'cron_schedules' ) );
add_action( 'woocommerce_plugin_background_installer', array( __CLASS__, 'background_installer' ), 10, 2 );
add_action( 'woocommerce_theme_background_installer', array( __CLASS__, 'theme_background_installer' ), 10, 1 );
}
/**
@ -1235,7 +1233,6 @@ CREATE TABLE {$wpdb->prefix}woocommerce_termmeta (
public static function background_installer( $plugin_to_install_id, $plugin_to_install ) {
// Explicitly clear the event.
$args = func_get_args();
wp_clear_scheduled_hook( 'woocommerce_plugin_background_installer', $args );
if ( ! empty( $plugin_to_install['repo-slug'] ) ) {
require_once ABSPATH . 'wp-admin/includes/file.php';
@ -1395,7 +1392,6 @@ CREATE TABLE {$wpdb->prefix}woocommerce_termmeta (
public static function theme_background_installer( $theme_slug ) {
// Explicitly clear the event.
$args = func_get_args();
wp_clear_scheduled_hook( 'woocommerce_theme_background_installer', $args );
if ( ! empty( $theme_slug ) ) {
// Suppress feedback.