PluginProbe
WP-Stateless – Google Cloud Storage / trunk
WP-Stateless – Google Cloud Storage vtrunk
4.4.3 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.3.0 2.3.1 2.3.2 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.1.0 3.1.1 3.2.0 3.2.1 3.2.2 All 62 releases
← All changes | lib/classes/sync/class-library-sync.php +2 -2 3.2.2trunk View file →
@@ -26,9 +26,9 @@
26 26 * @return bool
27 27 */
28 28 public final function start($args = []) {
29 29 try {
30 - if ($this->is_process_running()) throw new UnprocessableException(__('Process already running', ud_get_stateless_media()->domain));
30 + if ($this->is_processing()) throw new UnprocessableException(__('Process already running', ud_get_stateless_media()->domain));
31 31
32 32 // Make sure there is no orphaned data and state
33 33 delete_site_option($this->get_stopped_option_key());
34 34 delete_transient($this->get_total_items_trans_key());
@@ -174,9 +174,9 @@
174 174 public function get_process_notice() {
175 175 $notices = parent::get_process_notice();
176 176 $last = intval($this->get_process_meta('last_at'));
177 177 if (!$last) {
178 - $last = strtotime($this->get_process_meta('datetime'));
178 + $last = strtotime( $this->get_process_meta('datetime') ?? '' );
179 179 if (false === $last) return $notices;
180 180 }
181 181
182 182 if (!property_exists($this, 'cron_interval')) return $notices;