From a9da3e247418f1241fe40a76fd67a96e5a731099 Mon Sep 17 00:00:00 2001 From: audrasjb Date: Tue, 16 Nov 2021 21:48:05 +0000 Subject: [PATCH] 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 --- wp-content/themes/twentytwentyone/functions.php | 3 +++ wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/wp-content/themes/twentytwentyone/functions.php b/wp-content/themes/twentytwentyone/functions.php index 52c5bb5faf..452b5b3d22 100644 --- a/wp-content/themes/twentytwentyone/functions.php +++ b/wp-content/themes/twentytwentyone/functions.php @@ -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' ); diff --git a/wp-includes/version.php b/wp-includes/version.php index a688a97fdc..40af19f916 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.