After [32796], improve the accessibility and markup for instances of touch_time().
Props rianrietveld, afercia. Fixes #31714. Built from https://develop.svn.wordpress.org/trunk@32945 git-svn-id: http://core.svn.wordpress.org/trunk@32916 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -92,7 +92,10 @@ $date = date_i18n( $datef, strtotime( $comment->comment_date ) );
|
||||
?>
|
||||
<span id="timestamp"><?php printf( $stamp, $date ); ?></span>
|
||||
<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>
|
||||
<div id='timestampdiv' class='hide-if-js'><?php touch_time(('editcomment' == $action), 0); ?></div>
|
||||
<fieldset id='timestampdiv' class='hide-if-js'>
|
||||
<legend class="screen-reader-text"><?php _e( 'Date and time' ); ?></legend>
|
||||
<?php touch_time( ( 'editcomment' === $action ), 0 ); ?>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
||||
Reference in New Issue
Block a user