From 292c57f8a046e2ca2224b7c60b0e599ea2102c52 Mon Sep 17 00:00:00 2001
From: Paul Biron <paul@sparrowhawkcomputing.com>
Date: Thu, 18 Nov 2021 09:00:44 -0700
Subject: [PATCH] Don't try to schedule the weekly rollback cleanup cron job if
WP is being installed.
---
src/wp-admin/includes/class-wp-upgrader.php | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/wp-admin/includes/class-wp-upgrader.php b/src/wp-admin/includes/class-wp-upgrader.php
index 6e525219b8..a38cf1eab5 100644
|
a
|
b
|
class WP_Upgrader { |
| 141 | 141 | public function init() { |
| 142 | 142 | $this->skin->set_upgrader( $this ); |
| 143 | 143 | $this->generic_strings(); |
| 144 | | $this->schedule_temp_backup_cleanup(); |
| | 144 | if ( ! wp_installing() ) { |
| | 145 | $this->schedule_temp_backup_cleanup(); |
| | 146 | } |
| 145 | 147 | } |
| 146 | 148 | |
| 147 | 149 | /** |