Make WordPress Core


Ignore:
Timestamp:
02/11/2020 12:05:01 AM (5 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.