Skip to content

Commit e446635

Browse files
committed
Don't concat two strings to make a sentence
1 parent f62cfb3 commit e446635

1 file changed

Lines changed: 6 additions & 12 deletions

File tree

src/wp-admin/includes/class-wp-on-this-day.php

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -263,18 +263,12 @@ public static function render_window_updated_notice() {
263263

264264
wp_admin_notice(
265265
sprintf(
266-
/* translators: %s: Number of days. */
267-
__( 'On This Day duration updated to %s.' ),
268-
sprintf(
269-
/* translators: %s: Number of days. */
270-
_n( '%s day', '%s days', $window_days ),
271-
number_format_i18n( $window_days )
272-
)
273-
),
274-
array(
275-
'id' => 'message',
276-
'type' => 'success',
277-
'dismissible' => true,
266+
_n(
267+
'On This Day duration updated to %d day.',
268+
'On This Day duration updated to %d days.',
269+
$window_days
270+
),
271+
number_format_i18n( $window_days )
278272
)
279273
);
280274
}

0 commit comments

Comments
 (0)