From 420b733958cc5f4b2c79c0648a16bfcaef75d809 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 23 Aug 2016 23:18:29 +0000 Subject: [PATCH] I18N: Add translator comments for strings in `wp-includes/author-template.php`. Props ramiy. Fixes #37795. Built from https://develop.svn.wordpress.org/trunk@38341 git-svn-id: http://core.svn.wordpress.org/trunk@38282 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/author-template.php | 18 ++++++++++++++---- wp-includes/version.php | 2 +- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/wp-includes/author-template.php b/wp-includes/author-template.php index 915805fcb9..b2b6ea3159 100644 --- a/wp-includes/author-template.php +++ b/wp-includes/author-template.php @@ -188,7 +188,12 @@ function the_author_meta( $field = '', $user_id = false ) { */ function get_the_author_link() { if ( get_the_author_meta('url') ) { - return '' . get_the_author() . ''; + return sprintf( '%3$s', + esc_url( get_the_author_meta('url') ), + /* translators: %s: author's display name */ + esc_attr( sprintf( __( 'Visit %s’s website' ), get_the_author() ) ), + get_the_author() + ); } else { return get_the_author(); } @@ -250,9 +255,9 @@ function get_the_author_posts_link() { return; } - $link = sprintf( - '', + $link = sprintf( '', esc_url( get_author_posts_url( $authordata->ID, $authordata->user_nicename ) ), + /* translators: %s: author's display name */ esc_attr( sprintf( __( 'Posts by %s' ), get_the_author() ) ), get_the_author() ); @@ -412,7 +417,12 @@ function wp_list_authors( $args = '' ) { $return .= '
  • '; } - $link = 'display_name) ) . '">' . $name . ''; + $link = sprintf( '%3$s', + get_author_posts_url( $author->ID, $author->user_nicename ), + /* translators: %s: author's display name */ + esc_attr( sprintf( __( 'Posts by %s' ), $author->display_name ) ), + $name + ); if ( ! empty( $args['feed_image'] ) || ! empty( $args['feed'] ) ) { $link .= ' '; diff --git a/wp-includes/version.php b/wp-includes/version.php index b8e2ab4d15..dad1e3d9dc 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-alpha-38340'; +$wp_version = '4.7-alpha-38341'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.