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:
@@ -206,7 +206,10 @@ if ( $can_publish ) : // Contributors don't get to choose the date of publish ?>
|
||||
<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(($action == 'edit'), 1); ?></div>
|
||||
<fieldset id="timestampdiv" class="hide-if-js">
|
||||
<legend class="screen-reader-text"><?php _e( 'Date and time' ); ?></legend>
|
||||
<?php touch_time( ( $action === 'edit' ), 1 ); ?>
|
||||
</fieldset>
|
||||
</div><?php // /misc-pub-section ?>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user