From a75e8ef744b9ea022f0e18c951f056cb067c0c77 Mon Sep 17 00:00:00 2001 From: Tammie Lister Date: Sat, 20 Jul 2024 10:57: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. Built from https://develop.svn.wordpress.org/trunk@58771 git-svn-id: http://core.svn.wordpress.org/trunk@58173 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyfifteen/inc/template-tags.php | 2 +- wp-content/themes/twentysixteen/inc/template-tags.php | 2 +- wp-includes/version.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-content/themes/twentyfifteen/inc/template-tags.php b/wp-content/themes/twentyfifteen/inc/template-tags.php index 475423dd68..d2a0180f21 100644 --- a/wp-content/themes/twentyfifteen/inc/template-tags.php +++ b/wp-content/themes/twentyfifteen/inc/template-tags.php @@ -97,7 +97,7 @@ if ( ! function_exists( '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/wp-content/themes/twentysixteen/inc/template-tags.php b/wp-content/themes/twentysixteen/inc/template-tags.php index a55799812f..ddd3060d00 100644 --- a/wp-content/themes/twentysixteen/inc/template-tags.php +++ b/wp-content/themes/twentysixteen/inc/template-tags.php @@ -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( - '%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' ), diff --git a/wp-includes/version.php b/wp-includes/version.php index 4243449833..dc9fd7f1d6 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7-alpha-58770'; +$wp_version = '6.7-alpha-58771'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.