Make WordPress Core


Ignore:
Timestamp:
06/18/2015 04:35:12 PM (10 years ago)
Author:
obenland
Message:

Semanticize Help and Screen Options toggle.

Links used as UI controls that are not real links but act as buttons, should be buttons.

Props afercia.
Fixes #32494.

File:
1 edited

Legend:

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

    r32707 r32844  
    975975        <?php if ( $this->get_help_tabs() ) : ?>
    976976            <div id="contextual-help-link-wrap" class="hide-if-no-js screen-meta-toggle">
    977             <a href="#contextual-help-wrap" id="contextual-help-link" class="show-settings" aria-controls="contextual-help-wrap" aria-expanded="false"><?php _e( 'Help' ); ?></a>
     977            <button type="button" id="contextual-help-link" class="button show-settings" aria-controls="contextual-help-wrap" aria-expanded="false"><?php _e( 'Help' ); ?></button>
    978978            </div>
    979979        <?php endif;
    980980        if ( $this->show_screen_options() ) : ?>
    981981            <div id="screen-options-link-wrap" class="hide-if-no-js screen-meta-toggle">
    982             <a href="#screen-options-wrap" id="show-settings-link" class="show-settings" aria-controls="screen-options-wrap" aria-expanded="false"><?php _e( 'Screen Options' ); ?></a>
     982            <button type="button" id="show-settings-link" class="button show-settings" aria-controls="screen-options-wrap" aria-expanded="false"><?php _e( 'Screen Options' ); ?></button>
    983983            </div>
    984984        <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.