mirror of
git://develop.git.wordpress.org/
synced 2025-03-14 17:09:47 +01:00
Multiple themes Fixes theme screen reader including text inside card.
The function twentysixteen_entry_meta included screen reader text inside the span property using the author mf class. This resolves that in both Twenty Sixteen and Twenty Fifteen. It should have the screen reader text inside the byline span but outside the author vcard span. Props dshanske, laurelfulford, sabernhardt, shilu25. Fixes #46233. git-svn-id: https://develop.svn.wordpress.org/trunk@58771 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
60f9f87210
commit
450de6b6ad
@ -97,7 +97,7 @@ if ( ! function_exists( 'twentyfifteen_entry_meta' ) ) :
|
||||
if ( 'post' === get_post_type() ) {
|
||||
if ( is_singular() || is_multi_author() ) {
|
||||
printf(
|
||||
'<span class="byline"><span class="author vcard"><span class="screen-reader-text">%1$s </span><a class="url fn n" href="%2$s">%3$s</a></span></span>',
|
||||
'<span class="byline"><span class="screen-reader-text">%1$s </span><span class="author vcard"><a class="url fn n" href="%2$s">%3$s</a></span></span>',
|
||||
/* translators: Hidden accessibility text. */
|
||||
_x( 'Author', 'Used before post author name.', 'twentyfifteen' ),
|
||||
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
|
||||
|
@ -21,7 +21,7 @@ if ( ! function_exists( 'twentysixteen_entry_meta' ) ) :
|
||||
if ( 'post' === get_post_type() ) {
|
||||
$author_avatar_size = apply_filters( 'twentysixteen_author_avatar_size', 49 );
|
||||
printf(
|
||||
'<span class="byline"><span class="author vcard">%1$s<span class="screen-reader-text">%2$s </span> <a class="url fn n" href="%3$s">%4$s</a></span></span>',
|
||||
'<span class="byline">%1$s<span class="screen-reader-text">%2$s </span><span class="author vcard"><a class="url fn n" href="%3$s">%4$s</a></span></span>',
|
||||
get_avatar( get_the_author_meta( 'user_email' ), $author_avatar_size ),
|
||||
/* translators: Hidden accessibility text. */
|
||||
_x( 'Author', 'Used before post author name.', 'twentysixteen' ),
|
||||
|
Loading…
x
Reference in New Issue
Block a user