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:
parent
1857cff7c6
commit
dda16f9096
@ -984,7 +984,7 @@ function wp_get_auto_update_message() {
|
||||
|
||||
// Check if the event exists.
|
||||
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 {
|
||||
$time_to_next_update = human_time_diff( intval( $next_update_time ) );
|
||||
|
||||
@ -994,13 +994,13 @@ function wp_get_auto_update_message() {
|
||||
if ( $overdue ) {
|
||||
$message = sprintf(
|
||||
/* 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
|
||||
);
|
||||
} else {
|
||||
$message = sprintf(
|
||||
/* translators: %s: Time until the next update. */
|
||||
__( 'Auto-update update scheduled in %s.' ),
|
||||
__( 'Automatic update scheduled in %s.' ),
|
||||
$time_to_next_update
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user