From 2784518869af91af49afc2b932eb59f293d08d7f Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 7 Jul 2020 09:19:00 +0000 Subject: [PATCH] Site Health: Correct translator comment for the message displayed after clicking "remind me later" on the admin email confirmation. Adjust the logic for displaying the message for better readability. Follow-up to [48359]. See #48333. git-svn-id: https://develop.svn.wordpress.org/trunk@48363 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/_index.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/wp-admin/_index.php b/src/wp-admin/_index.php index 251da847a4..5592a509cf 100644 --- a/src/wp-admin/_index.php +++ b/src/wp-admin/_index.php @@ -124,17 +124,21 @@ require_once ABSPATH . 'wp-admin/admin-header.php'; * Calculate how many seconds it's been since the reminder was postponed. * This allows us to not show it if the query arg is set, but visited due to caches, bookmarks or similar. */ - $time_passed = $postponed_time - $remind_interval - time(); + $time_passed = time() - ( $postponed_time - $remind_interval ); // Only show the dashboard notice if it's been less than a minute since the message was postponed. - if ( $time_passed > -60 ) : + if ( $time_passed < MINUTE_IN_SECONDS ) : ?>