From b2da716c11f12e34314137ce9de2cf09912e7e4a Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Wed, 19 Mar 2014 05:53:01 +0000 Subject: [PATCH] Skipping placeholders in a string will only catch translators off guard. see #27453, #27132. git-svn-id: https://develop.svn.wordpress.org/trunk@27613 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/dashboard.php | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/src/wp-admin/includes/dashboard.php b/src/wp-admin/includes/dashboard.php index 107224bf53..f0093e3cb9 100644 --- a/src/wp-admin/includes/dashboard.php +++ b/src/wp-admin/includes/dashboard.php @@ -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 = __( '%1$s, %2$s %4$s' ); + printf( "
  • $format
  • ", $relative, get_the_time(), get_edit_post_link(), _draft_or_post_title() ); } else { - /* translators: 1: relative date, 2: time, 4: post title */ - $format = __( '%1$s, %2$s %4$s' ); + /* translators: 1: relative date, 2: time, 3: post title */ + $format = __( '%1$s, %2$s %3$s' ); + printf( "
  • $format
  • ", $relative, get_the_time(), _draft_or_post_title() ); } - - $text = sprintf( - $format, - $relative, - get_the_time(), - get_edit_post_link(), - _draft_or_post_title() - ); - - echo "
  • $text
  • "; } echo '';