diff --git a/src/wp-admin/css/widgets.css b/src/wp-admin/css/widgets.css
index a4d314a..c72f048 100644
|
a
|
b
|
|
| 36 | 36 | user-select: none; |
| 37 | 37 | } |
| 38 | 38 | |
| | 39 | .widget-access-link { |
| | 40 | float: right; |
| | 41 | margin: -5px 0 10px 10px; |
| | 42 | } |
| | 43 | |
| 39 | 44 | .widgets-holder-wrap .widget-inside { |
| 40 | 45 | border-top: none; |
| 41 | 46 | padding: 1px 15px 15px 15px; |
| … |
… |
ul.CodeMirror-hints { |
| 772 | 777 | padding-right: 0; |
| 773 | 778 | } |
| 774 | 779 | |
| | 780 | .widget-access-link { |
| | 781 | float: none; |
| | 782 | margin: 15px 0 0 0; |
| | 783 | } |
| | 784 | |
| 775 | 785 | #widgets-left .sidebar-name { |
| 776 | 786 | margin-right: 0; |
| 777 | 787 | } |
diff --git a/src/wp-admin/includes/class-wp-screen.php b/src/wp-admin/includes/class-wp-screen.php
index 0277970..c9b6a57 100644
|
a
|
b
|
if ( $this->show_screen_options() ) : |
| 927 | 927 | $show_screen = ! empty( $wp_meta_boxes[ $this->id ] ) || $columns || $this->get_option( 'per_page' ); |
| 928 | 928 | |
| 929 | 929 | switch ( $this->base ) { |
| 930 | | case 'widgets': |
| 931 | | $nonce = wp_create_nonce( 'widgets-access' ); |
| 932 | | $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"; |
| 933 | | break; |
| 934 | 930 | case 'post': |
| 935 | 931 | $expand = '<fieldset class="editor-expand hidden"><legend>' . __( 'Additional settings' ) . '</legend><label for="editor-expand-toggle">'; |
| 936 | 932 | $expand .= '<input type="checkbox" id="editor-expand-toggle"' . checked( get_user_setting( 'editor_expand', 'on' ), 'on', false ) . ' />'; |
| … |
… |
if ( $this->show_screen_options() ) : |
| 943 | 939 | } |
| 944 | 940 | |
| 945 | 941 | /** |
| 946 | | * Filters the screen settings text displayed in the Screen Options tab. |
| 947 | | * |
| 948 | | * This filter is currently only used on the Widgets screen to enable |
| 949 | | * accessibility mode. |
| 950 | | * |
| 951 | | * @since 3.0.0 |
| 952 | | * |
| 953 | | * @param string $screen_settings Screen settings. |
| 954 | | * @param WP_Screen $this WP_Screen object. |
| 955 | | */ |
| 956 | | $this->_screen_settings = apply_filters( 'screen_settings', $this->_screen_settings, $this ); |
| 957 | | |
| 958 | | if ( $this->_screen_settings || $this->_options ) { |
| 959 | | $show_screen = true; |
| 960 | | } |
| 961 | | |
| 962 | | /** |
| 963 | 942 | * Filters whether to show the Screen Options tab. |
| 964 | 943 | * |
| 965 | 944 | * @since 3.2.0 |
diff --git a/src/wp-admin/widgets.php b/src/wp-admin/widgets.php
index 5337670..be3a26b 100644
|
a
|
b
|
require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 382 | 382 | echo esc_html( $title ); |
| 383 | 383 | ?> |
| 384 | 384 | </h1> |
| 385 | | |
| 386 | 385 | <?php |
| 387 | 386 | if ( current_user_can( 'customize' ) ) { |
| 388 | 387 | printf( |
| … |
… |
if ( current_user_can( 'customize' ) ) { |
| 400 | 399 | ); |
| 401 | 400 | } |
| 402 | 401 | ?> |
| 403 | | |
| | 402 | <?php $nonce = wp_create_nonce( 'widgets-access' ); ?> |
| | 403 | <div class="widget-access-link"> |
| | 404 | <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> |
| | 405 | </div> |
| 404 | 406 | <hr class="wp-header-end"> |
| 405 | 407 | |
| 406 | 408 | <?php if ( isset( $_GET['message'] ) && isset( $messages[ $_GET['message'] ] ) ) { ?> |