Make WordPress Core


Ignore:
Timestamp:
03/06/2018 05:20:07 PM (6 years ago)
Author:
afercia
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/widgets.php

    r42719 r42790  
    400400    );
    401401}
    402 ?>
     402
     403$nonce = wp_create_nonce( 'widgets-access' );
     404?>
     405<div class="widget-access-link">
     406    <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>
     407</div>
    403408
    404409<hr class="wp-header-end">
Note: See TracChangeset for help on using the changeset viewer.