From 450de6b6ad44c5cf6b14c88352bec5888ed0abf8 Mon Sep 17 00:00:00 2001 From: Tammie Lister Date: Sat, 20 Jul 2024 10:55:14 +0000 Subject: [PATCH] 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 --- src/wp-content/themes/twentyfifteen/inc/template-tags.php | 2 +- src/wp-content/themes/twentysixteen/inc/template-tags.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-content/themes/twentyfifteen/inc/template-tags.php b/src/wp-content/themes/twentyfifteen/inc/template-tags.php index 475423dd68960..d2a0180f219e4 100644 --- a/src/wp-content/themes/twentyfifteen/inc/template-tags.php +++ b/src/wp-content/themes/twentyfifteen/inc/template-tags.php @@ -97,7 +97,7 @@ function twentyfifteen_entry_meta() { if ( 'post' === get_post_type() ) { if ( is_singular() || is_multi_author() ) { printf( - '%1$s %3$s', + '%1$s %3$s', /* translators: Hidden accessibility text. */ _x( 'Author', 'Used before post author name.', 'twentyfifteen' ), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), diff --git a/src/wp-content/themes/twentysixteen/inc/template-tags.php b/src/wp-content/themes/twentysixteen/inc/template-tags.php index a55799812faf2..ddd3060d00fec 100644 --- a/src/wp-content/themes/twentysixteen/inc/template-tags.php +++ b/src/wp-content/themes/twentysixteen/inc/template-tags.php @@ -21,7 +21,7 @@ function twentysixteen_entry_meta() { if ( 'post' === get_post_type() ) { $author_avatar_size = apply_filters( 'twentysixteen_author_avatar_size', 49 ); printf( - '%1$s%2$s %4$s', + '%1$s%2$s %4$s', get_avatar( get_the_author_meta( 'user_email' ), $author_avatar_size ), /* translators: Hidden accessibility text. */ _x( 'Author', 'Used before post author name.', 'twentysixteen' ),