WordPress.org

Make WordPress Core

Ticket #36380: 36380.5.diff

File 36380.5.diff, 1.4 KB (added by boonebgorges, 4 years ago)
  • src/wp-admin/comment.php

    diff --git src/wp-admin/comment.php src/wp-admin/comment.php
    index ffca93e..ba700ba 100644
    if ( $comment->comment_approved != '0' ) { // if not unapproved 
    211211</tr>
    212212<tr>
    213213<th scope="row"><?php /* translators: field name in comment form */ _ex('Comment', 'noun'); ?></th>
    214 <td>
     214<td class="comment-content">
    215215        <?php comment_text( $comment ); ?>
    216         <p><a href="<?php echo admin_url( "comment.php?action=editcomment&amp;c={$comment->comment_ID}" ); ?>"><?php esc_attr_e( 'Edit' ); ?></a></p>
     216        <p class="edit-comment"><a href="<?php echo admin_url( "comment.php?action=editcomment&amp;c={$comment->comment_ID}" ); ?>"><?php esc_attr_e( 'Edit' ); ?></a></p>
    217217</td>
    218218</tr>
    219219</table>
  • src/wp-admin/css/edit.css

    diff --git src/wp-admin/css/edit.css src/wp-admin/css/edit.css
    index f1bf46d..a2ca97d 100644
    p.popular-tags a { 
    11311131        padding: 10px 15px;
    11321132}
    11331133
    1134 .comment-ays td p:last-of-type {
     1134.comment-ays .comment-content a[href]:after {
     1135        content: '(' attr( href ) ')';
     1136        display: inline-block;
     1137        padding: 0 4px;
     1138        color: #82878c;
     1139        font-size: 13px;
     1140}
     1141
     1142.comment-ays .comment-content p.edit-comment {
    11351143        margin-top: 10px;
    11361144}
    11371145
     1146.comment-ays .comment-content p.edit-comment a[href]:after {
     1147        content: '';
     1148        padding: 0;
     1149}
     1150
    11381151.comment-ays-submit .button-cancel {
    11391152        margin-left: 1em;
    11401153}