I18N: Include placeholder in translator comments in wp_get_auto_update_message()
.
See #50436, #50052. git-svn-id: https://develop.svn.wordpress.org/trunk@48148 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
86162510c5
commit
b09056e131
@ -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
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user