Remove wp_clear_scheduled_hook for the plugin and theme background installer that does not run via cron anymore.

This commit is contained in:
Gerhard 2019-02-26 12:44:27 +02:00
parent 1e21ebe367
commit 3dde01570a
1 changed files with 0 additions and 2 deletions

View File

@ -1233,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';
@ -1393,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.