WordPress.org

Make WordPress Core

Changeset 52191


Ignore:
Timestamp:
11/16/2021 09:46:24 PM (3 weeks ago)
Author:
audrasjb
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentyone/functions.php

    r52147 r52191  
    339339        // This was removed in WordPress 5.6 but is still required to properly support WP 5.5.
    340340        add_theme_support( 'custom-units' );
     341
     342        // Remove feed icon link from legacy RSS widget.
     343        add_filter( 'rss_widget_feed_link', '__return_false' );
    341344    }
    342345}
Note: See TracChangeset for help on using the changeset viewer.