From 8e6ad4e5cac4090cfbb2aedbdf24bbc352e65410 Mon Sep 17 00:00:00 2001 From: Derek Smart Date: Mon, 22 Jan 2018 09:29:26 -0500 Subject: [PATCH] Update is_rewind_enabled logic to only return true if Rewind is active --- class.jetpack.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/class.jetpack.php b/class.jetpack.php index 4abadffc0908a..375f1c8178a35 100644 --- a/class.jetpack.php +++ b/class.jetpack.php @@ -7021,7 +7021,7 @@ public static function is_rewind_enabled() { $rewind_data = (array) Jetpack_Core_Json_Api_Endpoints::rewind_data(); $rewind_enabled = ( ! is_wp_error( $rewind_data ) && ! empty( $rewind_data['state'] ) - && 'unavailable' !== $rewind_data['state'] ) + && 'active' === $rewind_data['state'] ) ? 1 : 0;