Skip to content

Commit

Permalink
Date/Time: Correct singular form for minutes in human_time_diff().
Browse files Browse the repository at this point in the history
Follow-up to [58600].

Props wildworks.
See #61535.

git-svn-id: https://develop.svn.wordpress.org/trunk@58601 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Jun 30, 2024
1 parent 57910f6 commit 6645c75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wp-includes/formatting.php
Original file line number Diff line number Diff line change
Expand Up @@ -3884,8 +3884,8 @@ function human_time_diff( $from, $to = 0 ) {
if ( $mins <= 1 ) {
$mins = 1;
}
/* translators: Time difference between two dates, in minutes (min=minute). %s: Number of minutes. */
$since = sprintf( _n( '%s minutes', '%s minutes', $mins ), $mins );
/* translators: Time difference between two dates, in minutes. %s: Number of minutes. */
$since = sprintf( _n( '%s minute', '%s minutes', $mins ), $mins );
} elseif ( $diff < DAY_IN_SECONDS && $diff >= HOUR_IN_SECONDS ) {
$hours = round( $diff / HOUR_IN_SECONDS );
if ( $hours <= 1 ) {
Expand Down

0 comments on commit 6645c75

Please sign in to comment.