WordPress.org

Make WordPress Core

Changeset 27613


Ignore:
Timestamp:
03/19/2014 05:53:01 AM (7 years ago)
Author:
nacin
Message:

Skipping placeholders in a string will only catch translators off guard.

see #27453, #27132.

File:
1 edited

Legend:

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

    r27596 r27613  
    620620                /* translators: 1: relative date, 2: time, 3: post edit link, 4: post title */
    621621                $format = __( '<span>%1$s, %2$s</span> <a href="%3$s">%4$s</a>' );
     622                printf( "<li>$format</li>", $relative, get_the_time(), get_edit_post_link(), _draft_or_post_title() );
    622623            } else {
    623                 /* translators: 1: relative date, 2: time, 4: post title */
    624                 $format = __( '<span>%1$s, %2$s</span> %4$s' );
     624                /* translators: 1: relative date, 2: time, 3: post title */
     625                $format = __( '<span>%1$s, %2$s</span> %3$s' );
     626                printf( "<li>$format</li>", $relative, get_the_time(), _draft_or_post_title() );
    625627            }
    626 
    627             $text = sprintf(
    628                 $format,
    629                 $relative,
    630                 get_the_time(),
    631                 get_edit_post_link(),
    632                 _draft_or_post_title()
    633             );
    634 
    635             echo "<li>$text</li>";
    636628        }
    637629
Note: See TracChangeset for help on using the changeset viewer.