Security: Improve the wording of messages in `wp_get_auto_update_message()`.

Props burhandodhy, johnbillion, apedog.
Fixes #50489.

git-svn-id: https://develop.svn.wordpress.org/trunk@48202 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2020-06-28 14:16:51 +00:00
parent 1857cff7c6
commit dda16f9096
1 changed files with 3 additions and 3 deletions

View File

@ -984,7 +984,7 @@ function wp_get_auto_update_message() {
// Check if the event exists. // Check if the event exists.
if ( false === $next_update_time ) { if ( false === $next_update_time ) {
$message = __( 'Auto-update update not scheduled. There may be a problem with WP-Cron.' ); $message = __( 'Automatic update not scheduled. There may be a problem with WP-Cron.' );
} else { } else {
$time_to_next_update = human_time_diff( intval( $next_update_time ) ); $time_to_next_update = human_time_diff( intval( $next_update_time ) );
@ -994,13 +994,13 @@ function wp_get_auto_update_message() {
if ( $overdue ) { if ( $overdue ) {
$message = sprintf( $message = sprintf(
/* translators: %s: 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.' ), __( 'Automatic update overdue by %s. There may be a problem with WP-Cron.' ),
$time_to_next_update $time_to_next_update
); );
} else { } else {
$message = sprintf( $message = sprintf(
/* translators: %s: Time until the next update. */ /* translators: %s: Time until the next update. */
__( 'Auto-update update scheduled in %s.' ), __( 'Automatic update scheduled in %s.' ),
$time_to_next_update $time_to_next_update
); );
} }