WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/23/2020 10:29:00 PM (16 months ago)
Author:
SergeyBiryukov
Message:

I18N: Include placeholder in translator comments in wp_get_auto_update_message().

See #50436, #50052.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/update.php

    r48147 r48148  
    983983    $next_update_time = wp_next_scheduled( 'wp_version_check' );
    984984
    985     // Check if event exists.
     985    // Check if the event exists.
    986986    if ( false === $next_update_time ) {
    987987        $message = __( 'Auto-update update not scheduled. There may be a problem with WP-Cron.' );
     
    991991        // See if cron is overdue.
    992992        $overdue = ( time() - $next_update_time ) > 0;
     993
    993994        if ( $overdue ) {
    994995            $message = sprintf(
    995                 /* translators: Duration that WP-Cron has been overdue. */
     996                /* translators: %s: Duration that WP-Cron has been overdue. */
    996997                __( 'Auto-update update overdue by %s. There may be a problem with WP-Cron.' ),
    997998                $time_to_next_update
     
    9991000        } else {
    10001001            $message = sprintf(
    1001                 /* translators: Time until the next update. */
     1002                /* translators: %s: Time until the next update. */
    10021003                __( 'Auto-update update scheduled in %s.' ),
    10031004                $time_to_next_update
Note: See TracChangeset for help on using the changeset viewer.