WordPress.org

Make WordPress Core

Ticket #43587: 43587-4.diff

File 43587-4.diff, 3.9 KB (added by birgire, 6 months ago)
  • src/wp-admin/css/common.css

    diff --git src/wp-admin/css/common.css src/wp-admin/css/common.css
    index e15b871..64e62b6 100644
    html.wp-toolbar { 
    21332133#pass-strength-result.short,
    21342134#ed_reply_toolbar #ed_reply_strong,
    21352135.item-controls .item-order a,
    2136 .feature-filter .feature-name {
     2136.feature-filter .feature-name,
     2137#comment-status-display {
    21372138        font-weight: 600;
    21382139}
    21392140
  • src/wp-admin/css/edit.css

    diff --git src/wp-admin/css/edit.css src/wp-admin/css/edit.css
    index 323816e..6add37d 100644
    form#tags-filter { 
    448448#post-body #visibility:before,
    449449.curtime #timestamp:before,
    450450#post-body .misc-pub-revisions:before,
    451 span.wp-media-buttons-icon:before {
     451span.wp-media-buttons-icon:before,
     452#post-body .misc-pub-response-to:before,
     453#post-body .misc-pub-comment-status:before {
    452454        color: #82878c;
    453455}
    454456
    455457#post-body .misc-pub-post-status:before,
    456458#post-body #visibility:before,
    457459.curtime #timestamp:before,
    458 #post-body .misc-pub-revisions:before {
     460#post-body .misc-pub-revisions:before,
     461#post-body .misc-pub-response-to:before,
     462#post-body .misc-pub-comment-status:before {
    459463        font: normal 20px/1 dashicons;
    460464        speak: none;
    461465        display: inline-block;
    span.wp-media-buttons-icon:before { 
    466470        -moz-osx-font-smoothing: grayscale;
    467471}
    468472
    469 #post-body .misc-pub-post-status:before {
     473#post-body .misc-pub-post-status:before,
     474#post-body .misc-pub-comment-status:before {
    470475        content: "\f173";
    471476}
    472477
    span.wp-media-buttons-icon:before { 
    484489        content: "\f321";
    485490}
    486491
     492#post-body .misc-pub-response-to:before {
     493        content: "\f101";
     494}
     495
    487496#timestampdiv {
    488497        padding-top: 5px;
    489498        line-height: 23px;
    span.wp-media-buttons-icon:before { 
    611620        padding: 8px 10px;
    612621}
    613622
     623#poststuff .stuffbox > h2 {
     624    border-bottom: 1px solid #eee;
     625}
     626
    614627#poststuff .inside {
    615628        margin: 6px 0 0 0;
    616629}
    span.wp-media-buttons-icon:before { 
    638651        font-weight: 600;
    639652}
    640653
    641 #post-visibility-select {
     654#post-visibility-select,
     655#comment-status-radio {
    642656        line-height: 1.5em;
    643657        margin-top: 3px;
    644658}
  • src/wp-admin/edit-form-comment.php

    diff --git src/wp-admin/edit-form-comment.php src/wp-admin/edit-form-comment.php
    index 3e48f93..15bd703 100644
    if ( 'approved' === wp_get_comment_status( $comment ) && $comment->comment_post_ 
    8888
    8989<div id="postbox-container-1" class="postbox-container">
    9090<div id="submitdiv" class="stuffbox" >
    91 <h2><?php _e( 'Status' ); ?></h2>
     91<h2><?php _e( 'Save' ); ?></h2>
    9292<div class="inside">
    9393<div class="submitbox" id="submitcomment">
    9494<div id="minor-publishing">
    9595
    9696<div id="misc-publishing-actions">
    9797
    98 <fieldset class="misc-pub-section misc-pub-comment-status" id="comment-status-radio">
     98<div class="misc-pub-section misc-pub-comment-status" id="comment-status">
     99<?php _e( 'Status:' ); ?> <span id="comment-status-display">
     100<?php
     101switch ( $comment->comment_approved ) {
     102        case '1':
     103                _e( 'Approved' );
     104                break;
     105        case '0':
     106                _e( 'Pending' );
     107                break;
     108        case 'spam':
     109                _e( 'Spam' );
     110                break;
     111}
     112?>
     113</span>
     114
     115<fieldset id="comment-status-radio">
    99116<legend class="screen-reader-text"><?php _e( 'Comment status' ); ?></legend>
    100117<label><input type="radio"<?php checked( $comment->comment_approved, '1' ); ?> name="comment_status" value="1" /><?php _ex( 'Approved', 'comment status' ); ?></label><br />
    101118<label><input type="radio"<?php checked( $comment->comment_approved, '0' ); ?> name="comment_status" value="0" /><?php _ex( 'Pending', 'comment status' ); ?></label><br />
    102119<label><input type="radio"<?php checked( $comment->comment_approved, 'spam' ); ?> name="comment_status" value="spam" /><?php _ex( 'Spam', 'comment status' ); ?></label>
    103120</fieldset>
    104 
     121</div><!-- .misc-pub-section -->
     122       
    105123<div class="misc-pub-section curtime misc-pub-curtime">
    106124<?php
    107125/* translators: Publish box date format, see https://secure.php.net/date */