Make WordPress Core


Ignore:
Timestamp:
06/25/2015 07:30:00 PM (9 years ago)
Author:
wonderboymusic
Message:

After [32796], improve the accessibility and markup for instances of touch_time().

Props rianrietveld, afercia.
Fixes #31714.

File:
1 edited

Legend:

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

    r32720 r32945  
    207207    <?php printf($stamp, $date); ?></span>
    208208    <a href="#edit_timestamp" class="edit-timestamp hide-if-no-js"><span aria-hidden="true"><?php _e( 'Edit' ); ?></span> <span class="screen-reader-text"><?php _e( 'Edit date and time' ); ?></span></a>
    209     <div id="timestampdiv" class="hide-if-js"><?php touch_time(($action == 'edit'), 1); ?></div>
     209    <fieldset id="timestampdiv" class="hide-if-js">
     210    <legend class="screen-reader-text"><?php _e( 'Date and time' ); ?></legend>
     211    <?php touch_time( ( $action === 'edit' ), 1 ); ?>
     212    </fieldset>
    210213</div><?php // /misc-pub-section ?>
    211214<?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.