Twenty Twenty-One: Remove RSS feed widget icon link.

Use the `rss_widget_feed_link` filter to disable the output of the icon on RSS feed widgets in Twenty Twenty-One. Improves accessibility by preventing invisible links.

Props sabernhardt, poena.
Fixes #52880.

Built from https://develop.svn.wordpress.org/trunk@52191


git-svn-id: http://core.svn.wordpress.org/trunk@51783 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
audrasjb 2021-11-16 21:48:05 +00:00
parent 4586cfe5a0
commit a9da3e2474
2 changed files with 4 additions and 1 deletions

View File

@ -338,6 +338,9 @@ if ( ! function_exists( 'twenty_twenty_one_setup' ) ) {
// Add support for custom units.
// This was removed in WordPress 5.6 but is still required to properly support WP 5.5.
add_theme_support( 'custom-units' );
// Remove feed icon link from legacy RSS widget.
add_filter( 'rss_widget_feed_link', '__return_false' );
}
}
add_action( 'after_setup_theme', 'twenty_twenty_one_setup' );

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.9-alpha-52190';
$wp_version = '5.9-alpha-52191';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.