Make WordPress Core

Changeset 48363


Ignore:
Timestamp:
07/07/2020 09:19:00 AM (4 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/_index.php

    r48359 r48363  
    125125         * This allows us to not show it if the query arg is set, but visited due to caches, bookmarks or similar.
    126126         */
    127         $time_passed = $postponed_time - $remind_interval - time();
     127        $time_passed = time() - ( $postponed_time - $remind_interval );
    128128
    129129        // Only show the dashboard notice if it's been less than a minute since the message was postponed.
    130         if ( $time_passed > -60 ) :
     130        if ( $time_passed < MINUTE_IN_SECONDS ) :
    131131            ?>
    132132        <div class="notice notice-success is-dismissible">
     
    134134                <?php
    135135                printf(
    136                     /* translators: %1$s: The number of comments. %2$s: The post title. */
    137                     _n( 'The admin email verification page will reappear after %d day.', 'The admin email verification page will reappear after %d days.', 3 ),
     136                    /* translators: %d: The number of days. */
     137                    _n(
     138                        'The admin email verification page will reappear after %d day.',
     139                        'The admin email verification page will reappear after %d days.',
     140                        3
     141                    ),
    138142                    number_format_i18n( 3 )
    139143                );
Note: See TracChangeset for help on using the changeset viewer.