From ce784f7ad4cb069cf88b9d12d22d553af4127bc9 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 23 Jun 2020 22:30:09 +0000 Subject: [PATCH] I18N: Include placeholder in translator comments in `wp_get_auto_update_message()`. See #50436, #50052. Built from https://develop.svn.wordpress.org/trunk@48148 git-svn-id: http://core.svn.wordpress.org/trunk@47917 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/update.php | 7 ++++--- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/wp-admin/includes/update.php b/wp-admin/includes/update.php index 56140ead38..55630bdc5b 100644 --- a/wp-admin/includes/update.php +++ b/wp-admin/includes/update.php @@ -982,7 +982,7 @@ function wp_is_auto_update_enabled_for_type( $type ) { function wp_get_auto_update_message() { $next_update_time = wp_next_scheduled( 'wp_version_check' ); - // Check if event exists. + // Check if the event exists. if ( false === $next_update_time ) { $message = __( 'Auto-update update not scheduled. There may be a problem with WP-Cron.' ); } else { @@ -990,15 +990,16 @@ function wp_get_auto_update_message() { // See if cron is overdue. $overdue = ( time() - $next_update_time ) > 0; + if ( $overdue ) { $message = sprintf( - /* translators: Duration that WP-Cron has been overdue. */ + /* translators: %s: Duration that WP-Cron has been overdue. */ __( 'Auto-update update overdue by %s. There may be a problem with WP-Cron.' ), $time_to_next_update ); } else { $message = sprintf( - /* translators: Time until the next update. */ + /* translators: %s: Time until the next update. */ __( 'Auto-update update scheduled in %s.' ), $time_to_next_update ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 26d4bc1ab2..886a8b457b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-alpha-48147'; +$wp_version = '5.5-alpha-48148'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.