' . esc_html( $title ) . '';
+ /* translators: %s: post title */
+ echo '
';
if ( $the_content = wp_trim_words( $draft->post_content, 10 ) ) {
@@ -598,18 +604,18 @@
$delete_url = esc_url( "comment.php?action=deletecomment&p=$comment->comment_post_ID&c=$comment->comment_ID&$del_nonce" );
- $actions['approve'] = "
" . __( 'Approve' ) . '';
- $actions['unapprove'] = "
" . __( 'Unapprove' ) . '';
- $actions['edit'] = "
". __('Edit') . '';
- $actions['reply'] = '
' . __('Reply') . '';
- $actions['spam'] = "
" . /* translators: mark as spam link */ _x( 'Spam', 'verb' ) . '';
+ $actions['approve'] = "
" . __( 'Approve' ) . '';
+ $actions['unapprove'] = "
" . __( 'Unapprove' ) . '';
+ $actions['edit'] = "
". __( 'Edit' ) . '';
+ $actions['reply'] = '
' . __( 'Reply' ) . '';
+ $actions['spam'] = "
" . /* translators: mark as spam link */ _x( 'Spam', 'verb' ) . '';
if ( ! EMPTY_TRASH_DAYS ) {
- $actions['delete'] = "
" . __('Delete Permanently') . '';
+ $actions['delete'] = "
" . __( 'Delete Permanently' ) . '';
} else {
- $actions['trash'] = "
" . _x('Trash', 'verb') . '';
+ $actions['trash'] = "
" . _x( 'Trash', 'verb' ) . '';
}
if ( '1' === $comment->comment_approved ) {
- $actions['view'] = '';
+ $actions['view'] = '';
}
@@ -802,7 +808,15 @@
$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 */
- $format = __( '
%1$s, %2$s %4$s' );
- printf( "
$format", $relative, get_the_time(), $recent_post_link, _draft_or_post_title() );
+ /* 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(),
+ $recent_post_link,
+ $draft_or_post_title,
+ /* translators: %s: post title */
+ esc_attr( sprintf( __( 'Edit “%s”' ), $draft_or_post_title ) )
+ );
}
@@ -1188,8 +1202,11 @@
continue;
- $title = esc_html( $item->get_title() );
+ $raw_title = $item->get_title();
$ilink = wp_nonce_url('plugin-install.php?tab=plugin-information&plugin=' . $slug, 'install-plugin_' . $slug) . '&TB_iframe=true&width=600&height=800';
- echo "
" . __( 'Popular Plugin' ) . ": $title (" . __( 'Install' ) . ")";
+ echo '
' . __( 'Popular Plugin' ) . ': ' . esc_html( $raw_title ) .
+ ' (' . __( 'Install' ) . ')';
$feed->__destruct();
@@ -1235,8 +1252,8 @@
);
printf(
- '
%3$s',
+ '
%2$s (%3$s)',
esc_url( admin_url( 'upload.php' ) ),
- __( 'Manage Uploads' ),
- $text
+ $text,
+ __( 'Manage Uploads' )
); ?>
@@ -1248,8 +1265,8 @@
);
printf(
- '%3$s',
+ '%2$s (%3$s)',
esc_url( admin_url( 'upload.php' ) ),
- __( 'Manage Uploads' ),
- $text
+ $text,
+ __( 'Manage Uploads' )
); ?>
@@ -1292,5 +1309,5 @@
$notice .= '
' . sprintf( __( 'Update %2$s or learn how to browse happy' ), esc_attr( $response['update_url'] ), esc_html( $response['name'] ), esc_url( $browsehappy ) ) . '
';
- $notice .= '
' . __( 'Dismiss' ) . '
';
+ $notice .= '
' . __( 'Dismiss' ) . '
';
$notice .= '
';
}