Make WordPress Core

Ticket #43587: 43587-6.diff

File 43587-6.diff, 3.7 KB (added by birgire, 5 years ago)
  • src/wp-admin/css/common.css

    diff --git src/wp-admin/css/common.css src/wp-admin/css/common.css
    index a8b8112..5c97f14 100644
    html.wp-toolbar { 
    21512151#pass-strength-result.short,
    21522152#ed_reply_toolbar #ed_reply_strong,
    21532153.item-controls .item-order a,
    2154 .feature-filter .feature-name {
     2154.feature-filter .feature-name,
     2155#comment-status-display {
    21552156        font-weight: 600;
    21562157}
    21572158
  • src/wp-admin/css/edit.css

    diff --git src/wp-admin/css/edit.css src/wp-admin/css/edit.css
    index 35e4e1e..bab9ee2 100644
    form#tags-filter { 
    447447#post-body .misc-pub-post-status:before,
    448448#post-body #visibility:before,
    449449.curtime #timestamp:before,
    450 #post-body .misc-pub-revisions:before {
     450#post-body .misc-pub-revisions:before,
     451#post-body .misc-pub-response-to:before,
     452#post-body .misc-pub-comment-status:before {
    451453        color: #82878c;
    452454}
    453455
    454456#post-body .misc-pub-post-status:before,
    455457#post-body #visibility:before,
    456458.curtime #timestamp:before,
    457 #post-body .misc-pub-revisions:before {
     459#post-body .misc-pub-revisions:before,
     460#post-body .misc-pub-response-to:before,
     461#post-body .misc-pub-comment-status:before {
    458462        font: normal 20px/1 dashicons;
    459463        speak: none;
    460464        display: inline-block;
    form#tags-filter { 
    465469        -moz-osx-font-smoothing: grayscale;
    466470}
    467471
    468 #post-body .misc-pub-post-status:before {
     472#post-body .misc-pub-post-status:before,
     473#post-body .misc-pub-comment-status:before {
    469474        content: "\f173";
    470475}
    471476
    form#tags-filter { 
    483488        content: "\f321";
    484489}
    485490
     491#post-body .misc-pub-response-to:before {
     492        content: "\f101";
     493}
     494
    486495#timestampdiv {
    487496        padding-top: 5px;
    488497        line-height: 1.76923076;
    form#tags-filter { 
    609618        padding: 8px 10px;
    610619}
    611620
     621#poststuff .stuffbox > h2 {
     622    border-bottom: 1px solid #eee;
     623}
     624
    612625#poststuff .inside {
    613626        margin: 6px 0 0 0;
    614627}
    form#tags-filter { 
    636649        font-weight: 600;
    637650}
    638651
    639 #post-visibility-select {
     652#post-visibility-select,
     653#comment-status-radio {
    640654        line-height: 1.5;
    641655        margin-top: 3px;
    642656}
  • src/wp-admin/edit-form-comment.php

    diff --git src/wp-admin/edit-form-comment.php src/wp-admin/edit-form-comment.php
    index 43b568a..8047a48 100644
    if ( 'approved' === wp_get_comment_status( $comment ) && $comment->comment_post_ 
    8787
    8888<div id="postbox-container-1" class="postbox-container">
    8989<div id="submitdiv" class="stuffbox" >
    90 <h2><?php _e( 'Status' ); ?></h2>
     90<h2><?php _e( 'Save' ); ?></h2>
    9191<div class="inside">
    9292<div class="submitbox" id="submitcomment">
    9393<div id="minor-publishing">
    9494
    9595<div id="misc-publishing-actions">
    9696
    97 <fieldset class="misc-pub-section misc-pub-comment-status" id="comment-status-radio">
     97<div class="misc-pub-section misc-pub-comment-status" id="comment-status">
     98<?php _e( 'Status:' ); ?> <span id="comment-status-display">
     99<?php
     100switch ( $comment->comment_approved ) {
     101        case '1':
     102                _e( 'Approved' );
     103                break;
     104        case '0':
     105                _e( 'Pending' );
     106                break;
     107        case 'spam':
     108                _e( 'Spam' );
     109                break;
     110}
     111?>
     112</span>
     113
     114<fieldset id="comment-status-radio">
    98115<legend class="screen-reader-text"><?php _e( 'Comment status' ); ?></legend>
    99116<label><input type="radio"<?php checked( $comment->comment_approved, '1' ); ?> name="comment_status" value="1" /><?php _ex( 'Approved', 'comment status' ); ?></label><br />
    100117<label><input type="radio"<?php checked( $comment->comment_approved, '0' ); ?> name="comment_status" value="0" /><?php _ex( 'Pending', 'comment status' ); ?></label><br />
    101118<label><input type="radio"<?php checked( $comment->comment_approved, 'spam' ); ?> name="comment_status" value="spam" /><?php _ex( 'Spam', 'comment status' ); ?></label>
    102119</fieldset>
    103 
     120</div><!-- .misc-pub-section -->
     121       
    104122<div class="misc-pub-section curtime misc-pub-curtime">
    105123<?php
    106124$submitted = sprintf(