Commit 81cbeb6334 for wordpress.org
commit 81cbeb633444e1d06efcb5354f732633ba6571b0
Author: afercia <afercia@git.wordpress.org>
Date: Sun Sep 20 11:08:50 2026 +0000
Administration: Improve the RSS feed setting accessibility.
Associates the description of the RSS feed setting on the Reading Settings page with the wrapping fieldset element.
Also, replaces implicit labeling (label elements that wrap inputs) with explicit labeling.
Developed in https://github.com/WordPress/wordpress-develop/pull/13617
Fixes #66143.
Built from https://develop.svn.wordpress.org/trunk@63763
git-svn-id: http://core.svn.wordpress.org/trunk@62935 1a063a9b-81f0-0310-95a4-ce76da25c4cd
diff --git a/wp-admin/options-reading.php b/wp-admin/options-reading.php
index eb8fb72b3a..8ea14a7178 100644
--- a/wp-admin/options-reading.php
+++ b/wp-admin/options-reading.php
@@ -190,13 +190,13 @@ else :
<?php $rss_use_excerpt_title = __( 'For each post in a feed, include' ); ?>
<tr>
<th scope="row"><?php echo $rss_use_excerpt_title; ?> </th>
-<td><fieldset>
- <legend class="screen-reader-text"><span><?php echo $rss_use_excerpt_title; ?></span></legend>
- <p>
- <label><input name="rss_use_excerpt" type="radio" value="0" <?php checked( 0, get_option( 'rss_use_excerpt' ) ); ?> /> <?php _e( 'Full text' ); ?></label><br />
- <label><input name="rss_use_excerpt" type="radio" value="1" <?php checked( 1, get_option( 'rss_use_excerpt' ) ); ?> /> <?php _e( 'Excerpt' ); ?></label>
- </p>
- <p class="description">
+<td><fieldset aria-describedby="rss-use-excerpt-description">
+ <legend class="screen-reader-text"><?php echo $rss_use_excerpt_title; ?></legend>
+ <input id="rss-use-full-text" name="rss_use_excerpt" type="radio" value="0" <?php checked( 0, get_option( 'rss_use_excerpt' ) ); ?> />
+ <label for="rss-use-full-text"><?php _e( 'Full text' ); ?></label><br />
+ <input id="rss-use-excerpt" name="rss_use_excerpt" type="radio" value="1" <?php checked( 1, get_option( 'rss_use_excerpt' ) ); ?> />
+ <label for="rss-use-excerpt"><?php _e( 'Excerpt' ); ?></label>
+ <p class="description" id="rss-use-excerpt-description">
<?php
printf(
/* translators: %s: Documentation URL. */
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 999a15bb9c..e5f458d087 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '7.2-alpha-63762';
+$wp_version = '7.2-alpha-63763';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.