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:
parent
cc58c4a940
commit
5ed4b4ed7b
|
@ -838,16 +838,15 @@ function wp_dashboard_recent_posts( $args ) {
|
||||||
// Use the post edit link for those who can edit, the permalink otherwise.
|
// 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();
|
$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();
|
$draft_or_post_title = _draft_or_post_title();
|
||||||
printf( "<li>$format</li>",
|
printf(
|
||||||
$relative,
|
'<li><span>%1$s</span> <a href="%2$s" aria-label="%3$s">%4$s</a></li>',
|
||||||
get_the_time(),
|
/* translators: 1: relative date, 2: time */
|
||||||
|
sprintf( _x( '%1$s, %2$s', 'dashboard' ), $relative, get_the_time() ),
|
||||||
$recent_post_link,
|
$recent_post_link,
|
||||||
$draft_or_post_title,
|
|
||||||
/* translators: %s: 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
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue