Remove wp_clear_scheduled_hook for the plugin and theme background installer that does not run via cron anymore.
This commit is contained in:
parent
1e21ebe367
commit
3dde01570a
|
@ -1233,7 +1233,6 @@ CREATE TABLE {$wpdb->prefix}woocommerce_termmeta (
|
||||||
public static function background_installer( $plugin_to_install_id, $plugin_to_install ) {
|
public static function background_installer( $plugin_to_install_id, $plugin_to_install ) {
|
||||||
// Explicitly clear the event.
|
// Explicitly clear the event.
|
||||||
$args = func_get_args();
|
$args = func_get_args();
|
||||||
wp_clear_scheduled_hook( 'woocommerce_plugin_background_installer', $args );
|
|
||||||
|
|
||||||
if ( ! empty( $plugin_to_install['repo-slug'] ) ) {
|
if ( ! empty( $plugin_to_install['repo-slug'] ) ) {
|
||||||
require_once ABSPATH . 'wp-admin/includes/file.php';
|
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 ) {
|
public static function theme_background_installer( $theme_slug ) {
|
||||||
// Explicitly clear the event.
|
// Explicitly clear the event.
|
||||||
$args = func_get_args();
|
$args = func_get_args();
|
||||||
wp_clear_scheduled_hook( 'woocommerce_theme_background_installer', $args );
|
|
||||||
|
|
||||||
if ( ! empty( $theme_slug ) ) {
|
if ( ! empty( $theme_slug ) ) {
|
||||||
// Suppress feedback.
|
// Suppress feedback.
|
||||||
|
|
Loading…
Reference in New Issue