Changeset 39770
- Timestamp:
- 01/11/2017 01:51:58 AM (9 years ago)
- Location:
- branches/3.8
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
src/wp-admin/includes/screen.php (modified) (1 diff)
-
src/wp-admin/widgets.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/3.8
- Property svn:mergeinfo changed
/branches/4.3 (added) merged: 39765
- Property svn:mergeinfo changed
-
branches/3.8/src/wp-admin/includes/screen.php
r26518 r39770 886 886 switch ( $this->id ) { 887 887 case 'widgets': 888 $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"; 888 $nonce = wp_create_nonce( 'widgets-access' ); 889 $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"; 889 890 break; 890 891 default: -
branches/3.8/src/wp-admin/widgets.php
r26608 r39770 18 18 $widgets_access = get_user_setting( 'widgets_access' ); 19 19 if ( isset($_GET['widgets-access']) ) { 20 check_admin_referer( 'widgets-access' ); 21 20 22 $widgets_access = 'on' == $_GET['widgets-access'] ? 'on' : 'off'; 21 23 set_user_setting( 'widgets_access', $widgets_access );
Note: See TracChangeset
for help on using the changeset viewer.