Skipping placeholders in a string will only catch translators off guard.
see #27453, #27132. Built from https://develop.svn.wordpress.org/trunk@27613 git-svn-id: http://core.svn.wordpress.org/trunk@27456 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ecab3c3535
commit
111e6a73be
|
@ -619,20 +619,12 @@ function wp_dashboard_recent_posts( $args ) {
|
|||
if ( current_user_can( 'edit_post', get_the_ID() ) ) {
|
||||
/* translators: 1: relative date, 2: time, 3: post edit link, 4: post title */
|
||||
$format = __( '<span>%1$s, %2$s</span> <a href="%3$s">%4$s</a>' );
|
||||
printf( "<li>$format</li>", $relative, get_the_time(), get_edit_post_link(), _draft_or_post_title() );
|
||||
} else {
|
||||
/* translators: 1: relative date, 2: time, 4: post title */
|
||||
$format = __( '<span>%1$s, %2$s</span> %4$s' );
|
||||
/* translators: 1: relative date, 2: time, 3: post title */
|
||||
$format = __( '<span>%1$s, %2$s</span> %3$s' );
|
||||
printf( "<li>$format</li>", $relative, get_the_time(), _draft_or_post_title() );
|
||||
}
|
||||
|
||||
$text = sprintf(
|
||||
$format,
|
||||
$relative,
|
||||
get_the_time(),
|
||||
get_edit_post_link(),
|
||||
_draft_or_post_title()
|
||||
);
|
||||
|
||||
echo "<li>$text</li>";
|
||||
}
|
||||
|
||||
echo '</ul>';
|
||||
|
|
Loading…
Reference in New Issue