From 83b69ceb02917f43cc56ab668199db30eccabae4 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 1 Mar 2016 01:38:28 +0000 Subject: [PATCH] I18N: Remove HTML tags from translatable string in `wp-admin/includes/dashboard.php`. Props ramiy, SergeyBiryukov. Fixes #36013. git-svn-id: https://develop.svn.wordpress.org/trunk@36793 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/dashboard.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/wp-admin/includes/dashboard.php b/src/wp-admin/includes/dashboard.php index e62a15e756..5efe6179bb 100644 --- a/src/wp-admin/includes/dashboard.php +++ b/src/wp-admin/includes/dashboard.php @@ -838,16 +838,15 @@ function wp_dashboard_recent_posts( $args ) { // Use the post edit link for those who can edit, the permalink otherwise. $recent_post_link = current_user_can( 'edit_post', get_the_ID() ) ? get_edit_post_link() : get_permalink(); - /* translators: 1: relative date, 2: time, 3: post edit link or permalink, 4: post title, 5: aria label */ - $format = __( '%1$s, %2$s %4$s' ); $draft_or_post_title = _draft_or_post_title(); - printf( "
  • $format
  • ", - $relative, - get_the_time(), + printf( + '
  • %1$s %4$s
  • ', + /* translators: 1: relative date, 2: time */ + sprintf( _x( '%1$s, %2$s', 'dashboard' ), $relative, get_the_time() ), $recent_post_link, - $draft_or_post_title, /* translators: %s: post title */ - esc_attr( sprintf( __( 'Edit “%s”' ), $draft_or_post_title ) ) + esc_attr( sprintf( __( 'Edit “%s”' ), $draft_or_post_title ) ), + $draft_or_post_title ); }