Changeset 39764 for branches/4.4/src/wp-admin/includes/class-wp-screen.php
- Timestamp:
- 01/11/2017 01:44:36 AM (8 years ago)
- Location:
- branches/4.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.4
-
branches/4.4/src/wp-admin/includes/class-wp-screen.php
r36145 r39764 916 916 switch ( $this->base ) { 917 917 case 'widgets': 918 $this->_screen_settings = '<p><a id="access-on" href="widgets.php?widgets-access=on">' . __('Enable accessibility mode') . '</a><a id="access-off" href="widgets.php?widgets-access=off">' . __('Disable accessibility mode') . "</a></p>\n"; 918 $nonce = wp_create_nonce( 'widgets-access' ); 919 $this->_screen_settings = '<p><a id="access-on" href="widgets.php?widgets-access=on&_wpnonce=' . urlencode( $nonce ) . '">' . __('Enable accessibility mode') . '</a><a id="access-off" href="widgets.php?widgets-access=off&_wpnonce=' . urlencode( $nonce ) . '">' . __('Disable accessibility mode') . "</a></p>\n"; 919 920 break; 920 921 case 'post' :
Note: See TracChangeset
for help on using the changeset viewer.