WordPress.org

Make WordPress Core

Ticket #43587: 43587.3.diff

File 43587.3.diff, 4.4 KB (added by nfmohit, 16 months ago)

Removes the comment status 'Edit' toggle and contains slight visual improvements and corrections

  • wp-admin/css/common.css

    diff --git wp-admin/css/common.css wp-admin/css/common.css
    index cbae1c5d68..527ed1cafe 100644
    html.wp-toolbar { 
    21112111#pass-strength-result.short,
    21122112#ed_reply_toolbar #ed_reply_strong,
    21132113.item-controls .item-order a,
    2114 .feature-filter .feature-name {
     2114.feature-filter .feature-name,
     2115#comment-status-display {
    21152116        font-weight: 600;
    21162117}
    21172118
  • wp-admin/css/edit.css

    diff --git wp-admin/css/edit.css wp-admin/css/edit.css
    index 9c7c257f53..a0905e7ca7 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 { 
    607616        line-height: 1.4;
    608617}
    609618
     619#poststuff .stuffbox > h2 {
     620    border-bottom: 1px solid #eee;
     621}
     622
    610623#poststuff .inside {
    611624        margin: 6px 0 0 0;
    612625}
    span.wp-media-buttons-icon:before { 
    630643        font-weight: 600;
    631644}
    632645
    633 #post-visibility-select {
     646#post-visibility-select,
     647#comment-status-radio {
    634648        line-height: 1.5em;
    635649        margin-top: 3px;
    636650}
  • wp-admin/edit-form-comment.php

    diff --git wp-admin/edit-form-comment.php wp-admin/edit-form-comment.php
    index e043908c30..920985bf74 100644
    if ( 'approved' === wp_get_comment_status( $comment ) && $comment->comment_post_ 
    8181
    8282<div id="postbox-container-1" class="postbox-container">
    8383<div id="submitdiv" class="stuffbox" >
    84 <h2><?php _e( 'Status' ); ?></h2>
     84<h2><?php _e( 'Save' ); ?></h2>
    8585<div class="inside">
    8686<div class="submitbox" id="submitcomment">
    8787<div id="minor-publishing">
    8888
    8989<div id="misc-publishing-actions">
    9090
    91 <fieldset class="misc-pub-section misc-pub-comment-status" id="comment-status-radio">
    92 <legend class="screen-reader-text"><?php _e( 'Comment status' ); ?></legend>
    93 <label><input type="radio"<?php checked( $comment->comment_approved, '1' ); ?> name="comment_status" value="1" /><?php _ex( 'Approved', 'comment status' ); ?></label><br />
    94 <label><input type="radio"<?php checked( $comment->comment_approved, '0' ); ?> name="comment_status" value="0" /><?php _ex( 'Pending', 'comment status' ); ?></label><br />
    95 <label><input type="radio"<?php checked( $comment->comment_approved, 'spam' ); ?> name="comment_status" value="spam" /><?php _ex( 'Spam', 'comment status' ); ?></label>
     91<div class="misc-pub-section misc-pub-comment-status" id="comment-status">
     92<?php _e( 'Status:' ); ?> <span id="comment-status-display">
     93                        <?php
     94
     95                        switch ( $comment->comment_approved ) {
     96                                case '1':
     97                                        _e( 'Approved' );
     98                                        break;
     99                                case '0':
     100                                        _e( 'Pending' );
     101                                        break;
     102                                case 'spam':
     103                                        _e( 'Spam' );
     104                                        break;
     105                        }
     106?>
     107</span>
     108
     109<fieldset id="comment-status-radio">
     110        <legend class="screen-reader-text"><?php _e( 'Comment status' ); ?></legend>
     111        <label><input type="radio"<?php checked( $comment->comment_approved, '1' ); ?> name="comment_status" value="1" /><?php _ex( 'Approved', 'comment status' ); ?></label><br />
     112        <label><input type="radio"<?php checked( $comment->comment_approved, '0' ); ?> name="comment_status" value="0" /><?php _ex( 'Pending', 'comment status' ); ?></label><br />
     113        <label><input type="radio"<?php checked( $comment->comment_approved, 'spam' ); ?> name="comment_status" value="spam" /><?php _ex( 'Spam', 'comment status' ); ?></label>
    96114</fieldset>
    97115
     116</div><!-- .misc-pub-section -->
     117
    98118<div class="misc-pub-section curtime misc-pub-curtime">
    99119<?php
    100120/* translators: Publish box date format, see https://secure.php.net/date */