I18N: Remove HTML tags from translatable string in `wp-admin/includes/dashboard.php`.

Props ramiy, SergeyBiryukov.
Fixes #36013.
Built from https://develop.svn.wordpress.org/trunk@36793


git-svn-id: http://core.svn.wordpress.org/trunk@36760 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2016-03-01 01:39:27 +00:00
parent cc58c4a940
commit 5ed4b4ed7b
2 changed files with 7 additions and 8 deletions

View File

@ -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 = __( '<span>%1$s, %2$s</span> <a href="%3$s" aria-label="%5$s">%4$s</a>' );
$draft_or_post_title = _draft_or_post_title();
printf( "<li>$format</li>",
$relative,
get_the_time(),
printf(
'<li><span>%1$s</span> <a href="%2$s" aria-label="%3$s">%4$s</a></li>',
/* 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 &#8220;%s&#8221;' ), $draft_or_post_title ) )
esc_attr( sprintf( __( 'Edit &#8220;%s&#8221;' ), $draft_or_post_title ) ),
$draft_or_post_title
);
}

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.5-beta1-36792';
$wp_version = '4.5-beta1-36793';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.