mirror of
git://develop.git.wordpress.org/
synced 2025-04-05 04:33:18 +02:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@52191 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3a03cdd776
commit
6192591757
@ -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' );
|
||||
|
Loading…
x
Reference in New Issue
Block a user