From d327064a015061af6333ac8d8e441f5b8b5bc627 Mon Sep 17 00:00:00 2001 From: iboruch <99720418+iboruch@users.noreply.github.com> Date: Wed, 1 Apr 2026 11:04:04 +0200 Subject: [PATCH] Revert "hotfix/cp-10640-add-scheduled-push-option-in-wordpress-plugin (#13)" This reverts commit e6593c8475508bdb60a2d4e4ce8b751911d8da5d. --- cleverpush.php | 153 +++++++++++++++---------------------------------- 1 file changed, 46 insertions(+), 107 deletions(-) diff --git a/cleverpush.php b/cleverpush.php index 08e38e9..f7ee2da 100644 --- a/cleverpush.php +++ b/cleverpush.php @@ -677,8 +677,17 @@ public function create_metabox() public function metabox($post) { - $notification_sent = get_post_meta($post->ID, 'cleverpush_notification_sent', true); - $notification_already_sent = ! empty($notification_sent); + $notification_sent = get_post_meta(get_the_ID(), 'cleverpush_notification_sent', true); + + if ($notification_sent) { + $notification_sent_at = get_post_meta(get_the_ID(), 'cleverpush_notification_sent_at', true); + if (!empty($notification_sent_at) && (time() - $notification_sent_at) < 60) { + ?> + ✅ + - -
✅