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
This commit is contained in:
parent
4586cfe5a0
commit
a9da3e2474
|
@ -338,6 +338,9 @@ if ( ! function_exists( 'twenty_twenty_one_setup' ) ) {
|
||||||
// Add support for custom units.
|
// Add support for custom units.
|
||||||
// This was removed in WordPress 5.6 but is still required to properly support WP 5.5.
|
// This was removed in WordPress 5.6 but is still required to properly support WP 5.5.
|
||||||
add_theme_support( 'custom-units' );
|
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' );
|
add_action( 'after_setup_theme', 'twenty_twenty_one_setup' );
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue