Make WordPress Core

Changeset 47252


Ignore:
Timestamp:
02/11/2020 12:05:01 AM (7 years ago)
Author:
SergeyBiryukov
Message:

Comments: Improve the appearance of the Status box on Edit Comment screen.

This makes the box more consistent with the Publish meta box in classic editor.

Props birgire, nfmohit, melchoyce, afercia.
Fixes #43587.

Location:
trunk/src/wp-admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/common.css

    r47071 r47252  
    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}
  • trunk/src/wp-admin/css/edit.css

    r47222 r47252  
    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}
     
    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;
     
    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}
     
    482487#post-body .misc-pub-revisions:before {
    483488        content: "\f321";
     489}
     490
     491#post-body .misc-pub-response-to:before {
     492        content: "\f101";
    484493}
    485494
     
    610619}
    611620
     621.poststuff .stuffbox > h2 {
     622        border-bottom: 1px solid #eee;
     623}
     624
    612625.poststuff .inside {
    613626        margin: 6px 0 0 0;
     
    637650}
    638651
    639 #post-visibility-select {
     652#post-visibility-select,
     653#comment-status-radio {
    640654        line-height: 1.5;
    641655        margin-top: 3px;
  • trunk/src/wp-admin/edit-form-comment.php

    r47222 r47252  
    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">
     
    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 />
     
    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
Note: See TracChangeset for help on using the changeset viewer.