WordPress.org

Make WordPress Core

Ticket #42778: 42778.diff

File 42778.diff, 970 bytes (added by chetan200891, 21 months ago)

Created patch to Enable accessibility mode link more discoverable

  • wp-admin/widgets.php

    diff --git a/wp-admin/widgets.php b/wp-admin/widgets.php
    index d967c5c..c1b302e 100644
    a b do_action( 'widgets_admin_page' ); ?> 
    393393                        </button>
    394394                        <h2><?php _e( 'Available Widgets' ); ?> <span id="removing-widget"><?php _ex( 'Deactivate', 'removing-widget' ); ?> <span></span></span></h2>
    395395                </div>
     396                <?php $nonce = wp_create_nonce( 'widgets-access' ); ?>
     397                <p><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></p>
    396398                <div class="widget-holder">
    397399                        <div class="sidebar-description">
    398400                                <p class="description"><?php _e('To activate a widget drag it to a sidebar or click on it. To deactivate a widget and delete its settings, drag it back.'); ?></p>