Make WordPress Core

Ticket #28411: 28411.diff

File 28411.diff, 5.2 KB (added by afercia, 9 years ago)
  • src/wp-admin/css/edit.css

     
    451451        height: auto !important;
    452452}
    453453
    454 #misc-publishing-actions label[for="post_status"]:before,
     454#post-body .misc-pub-post-status:before,
    455455#post-body #visibility:before,
    456456.curtime #timestamp:before,
    457457#post-body .misc-pub-revisions:before,
     
    459459        color: #82878c;
    460460}
    461461
     462#post-body .misc-pub-post-status:before,
    462463#post-body #visibility:before,
    463464.curtime #timestamp:before,
    464465#post-body .misc-pub-revisions:before {
     
    465466        font: normal 20px/1 dashicons;
    466467        speak: none;
    467468        display: inline-block;
    468         padding: 0 2px 0 0;
    469         top: 0;
    470         left: -1px;
    471         position: relative;
     469        margin-left: -1px;
     470        padding-right: 3px;
    472471        vertical-align: top;
    473472        -webkit-font-smoothing: antialiased;
    474473        -moz-osx-font-smoothing: grayscale;
    475         text-decoration: none !important;
    476474}
    477475
     476#post-body .misc-pub-post-status:before {
     477        content: "\f173";
     478}
     479
    478480#post-body #visibility:before {
    479481        content: "\f177";
    480482}
     
    481483
    482484.curtime #timestamp:before {
    483485        content: "\f145";
     486        position: relative;
    484487        top: -1px;
    485488}
    486489
  • src/wp-admin/css/forms.css

     
    458458        vertical-align: baseline;
    459459}
    460460
    461 #misc-publishing-actions label[for="post_status"]:before {
    462         content: "\f173";
    463         display: inline-block;
    464         font: normal 20px/1 dashicons;
    465         speak: none;
    466         left: -1px;
    467         padding: 0 5px 0 0;
    468         position: relative;
    469         top: 0;
    470         text-decoration: none !important;
    471         vertical-align: top;
    472         -webkit-font-smoothing: antialiased;
    473         -moz-osx-font-smoothing: grayscale;
    474 }
    475 
    476461#pass-strength-result {
    477462        background-color: #eee;
    478463        border: 1px solid #ddd;
  • src/wp-admin/includes/meta-boxes.php

     
    7474
    7575<div id="misc-publishing-actions">
    7676
    77 <div class="misc-pub-section misc-pub-post-status"><label for="post_status"><?php _e('Status:') ?></label>
    78 <span id="post-status-display">
    79 <?php
     77<div class="misc-pub-section misc-pub-post-status">
     78<?php _e( 'Status:' ) ?> <span id="post-status-display"><?php
     79
    8080switch ( $post->post_status ) {
    8181        case 'private':
    8282                _e('Privately Published');
     
    9898?>
    9999</span>
    100100<?php if ( 'publish' == $post->post_status || 'private' == $post->post_status || $can_publish ) { ?>
    101 <a href="#post_status" <?php if ( 'private' == $post->post_status ) { ?>style="display:none;" <?php } ?>class="edit-post-status hide-if-no-js"><span aria-hidden="true"><?php _e( 'Edit' ); ?></span> <span class="screen-reader-text"><?php _e( 'Edit status' ); ?></span></a>
     101<a href="#post_status" <?php if ( 'private' == $post->post_status ) { ?>style="display:none;" <?php } ?>class="edit-post-status hide-if-no-js" role="button"><span aria-hidden="true"><?php _e( 'Edit' ); ?></span> <span class="screen-reader-text"><?php _e( 'Edit status' ); ?></span></a>
    102102
    103103<div id="post-status-select" class="hide-if-js">
    104104<input type="hidden" name="hidden_post_status" id="hidden_post_status" value="<?php echo esc_attr( ('auto-draft' == $post->post_status ) ? 'draft' : $post->post_status); ?>" />
    105 <select name='post_status' id='post_status'>
     105<label for="post_status" class="screen-reader-text"><?php _e( 'Set status' ) ?></label>
     106<select name="post_status" id="post_status">
    106107<?php if ( 'publish' == $post->post_status ) : ?>
    107108<option<?php selected( $post->post_status, 'publish' ); ?> value='publish'><?php _e('Published') ?></option>
    108109<?php elseif ( 'private' == $post->post_status ) : ?>
     
    144145
    145146echo esc_html( $visibility_trans ); ?></span>
    146147<?php if ( $can_publish ) { ?>
    147 <a href="#visibility" class="edit-visibility hide-if-no-js"><span aria-hidden="true"><?php _e( 'Edit' ); ?></span> <span class="screen-reader-text"><?php _e( 'Edit visibility' ); ?></span></a>
     148<a href="#visibility" class="edit-visibility hide-if-no-js" role="button"><span aria-hidden="true"><?php _e( 'Edit' ); ?></span> <span class="screen-reader-text"><?php _e( 'Edit visibility' ); ?></span></a>
    148149
    149150<div id="post-visibility-select" class="hide-if-js">
    150151<input type="hidden" name="hidden_post_password" id="hidden-post-password" value="<?php echo esc_attr($post->post_password); ?>" />
     
    201202<div class="misc-pub-section curtime misc-pub-curtime">
    202203        <span id="timestamp">
    203204        <?php printf($stamp, $date); ?></span>
    204         <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>
     205        <a href="#edit_timestamp" class="edit-timestamp hide-if-no-js" role="button"><span aria-hidden="true"><?php _e( 'Edit' ); ?></span> <span class="screen-reader-text"><?php _e( 'Edit date and time' ); ?></span></a>
    205206        <fieldset id="timestampdiv" class="hide-if-js">
    206207        <legend class="screen-reader-text"><?php _e( 'Date and time' ); ?></legend>
    207208        <?php touch_time( ( $action === 'edit' ), 1 ); ?>