| | 39 | === Test the filter |
| | 40 | |
| | 41 | 1. Activate Twenty Twenty-One theme. |
| | 42 | 2. Apply [https://core.trac.wordpress.org/raw-attachment/ticket/52880/52880.filter.patch 52880.filter.patch]. (Do not revert the other patch.) |
| | 43 | 3. Go to Appearance > Widgets to make sure an RSS widget is in the desired sidebar area. |
| | 44 | 4. ~~Verify that the "Display feed icon?" option is **not** available.~~ |
| | 45 | 5. Visit the site, and view source code to verify that the feed link is not included in the widget heading. The text link should have the `rss-widget-title` class. |
| | 46 | 6. Activate another theme. |
| | 47 | 7. Use the same filter in a custom plugin (or child theme): \\ {{{ add_filter( 'rss_widget_feed_link', '__return_false' ); }}} |
| | 48 | 8. Again, check that the widget is in the desired sidebar area, verify that the option is not available, and check that the icon link is removed from the source code. |
| | 49 | 9. If you would like, try creating a custom filter to ''change'' the output instead of removing it entirely. I'll upload a child theme with two custom filter functions that I tested, but the main purpose of the `rss_widget_feed_link` filter is to remove the link. |
| | 50 | |
| 50 | | |
| 51 | | === Test the filter |
| 52 | | |
| 53 | | 1. Activate Twenty Twenty-One theme. |
| 54 | | 2. Apply [https://core.trac.wordpress.org/raw-attachment/ticket/52880/52880.filter.patch 52880.filter.patch]. (Do not revert the other patch.) |
| 55 | | 3. Go to Appearance > Widgets to make sure an RSS widget is in the desired sidebar area. |
| 56 | | 4. Verify that the "Display feed icon?" option is **not** available. |
| 57 | | 5. Visit the site, and view source code to verify that the feed link is not included in the widget heading. The text link should have the `rss-widget-title` class. |
| 58 | | 6. Activate another theme. |
| 59 | | 7. Use the same filter in a custom plugin (or child theme): \\ {{{ add_filter( 'rss_widget_feed_link', '__return_false' ); }}} |
| 60 | | 8. Again, check that the widget is in the desired sidebar area, verify that the option is not available, and check that the icon link is removed from the source code. |
| 61 | | 9. If you would like, try creating a custom filter to ''change'' the output instead of removing it entirely. I'll upload a child theme with two custom filter functions that I tested, but the main purpose of the `rss_widget_feed_link` filter is to remove the link. |