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/edit-form-comment.php

    r32929 r32945  
    9393<span id="timestamp"><?php printf( $stamp, $date ); ?></span>
    9494<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>
    95 <div id='timestampdiv' class='hide-if-js'><?php touch_time(('editcomment' == $action), 0); ?></div>
     95<fieldset id='timestampdiv' class='hide-if-js'>
     96<legend class="screen-reader-text"><?php _e( 'Date and time' ); ?></legend>
     97<?php touch_time( ( 'editcomment' === $action ), 0 ); ?>
     98</fieldset>
    9699</div>
    97100
Note: See TracChangeset for help on using the changeset viewer.