Ticket #57594: 57594.patch
| File 57594.patch, 1.5 KB (added by , 3 years ago) |
|---|
-
src/wp-content/themes/twentytwentyone/functions.php
340 340 add_theme_support( 'custom-units' ); 341 341 342 342 // Remove feed icon link from legacy RSS widget. 343 add_filter( 'rss_widget_feed_link', '__return_ false' );343 add_filter( 'rss_widget_feed_link', '__return_empty_string' ); 344 344 } 345 345 } 346 346 add_action( 'after_setup_theme', 'twenty_twenty_one_setup' ); -
src/wp-includes/widgets/class-wp-widget-rss.php
101 101 /** 102 102 * Filters the classic RSS widget's feed icon link. 103 103 * 104 * Themes can remove the icon link by using `add_filter( 'rss_widget_feed_link', '__return_ false' );`.104 * Themes can remove the icon link by using `add_filter( 'rss_widget_feed_link', '__return_empty_string' );`. 105 105 * 106 106 * @since 5.9.0 107 107 * 108 * @param string $feed_link HTML for link to RSS feed.109 * @param array $instance Array of settings for the current widget.108 * @param string|false $feed_link HTML for link to RSS feed. 109 * @param array $instance Array of settings for the current widget. 110 110 */ 111 111 $feed_link = apply_filters( 'rss_widget_feed_link', $feed_link, $instance ); 112 112