mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Accessibility: Make the Widgets screen "Enable accessibility mode" link more discoverable.
For a number of years, the link to the Widgets screen "Accessibility mode" lived in the Screen Options panel, hidden by default. Many users, including assistive technologies users, weren't able to find it or even aware it existed. By bringing the link in the main screen, visible by default, this change makes the "Accessibility mode" easily discoverable for everyone. Props chetan200891, antonioeatgoat. Fixes #42778. git-svn-id: https://develop.svn.wordpress.org/trunk@42790 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -399,7 +399,12 @@ if ( current_user_can( 'customize' ) ) {
|
||||
__( 'Manage with Live Preview' )
|
||||
);
|
||||
}
|
||||
|
||||
$nonce = wp_create_nonce( 'widgets-access' );
|
||||
?>
|
||||
<div class="widget-access-link">
|
||||
<a id="access-on" href="widgets.php?widgets-access=on&_wpnonce=<?php echo urlencode( $nonce ); ?>"><?php _e( 'Enable accessibility mode' ); ?></a><a id="access-off" href="widgets.php?widgets-access=off&_wpnonce=<?php echo urlencode( $nonce ); ?>"><?php _e( 'Disable accessibility mode' ); ?></a>
|
||||
</div>
|
||||
|
||||
<hr class="wp-header-end">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user