Make WordPress Core

Changeset 37161


Ignore:
Timestamp:
04/06/2016 12:34:23 AM (9 years ago)
Author:
jorbin
Message:

Make Moderate Comment Screen Great Again by showing links

You know what's wrong with the Moderate Comment Screen? It doesn't win anymore. Well, I'm going make the Moderate Comment screen win. It's going to win by showing the urls that are linked to from every anchor. It's going to win by having those urls be a lighter shade of gray than the surrounding text. Spammy links aren't going to be able to hide in commas. Spammy links aren't going to win. The Moderate Comment Screen is going to win and we are going to make the Moderate Comment Screen Great Again.

Fixes #36380
Props rachelbaker, mikeschroder, adamsilverstein, boonebgorges, melchoyce, ocean90, jorbin, pento

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

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/comment.php

    r37158 r37161  
    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>
  • trunk/src/wp-admin/css/edit.css

    r36972 r37161  
    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: #72777C;
     1139    font-size: 13px;
     1140}
     1141
     1142.comment-ays .comment-content p.edit-comment {
    11351143    margin-top: 10px;
     1144}
     1145
     1146.comment-ays .comment-content p.edit-comment a[href]:after {
     1147    content: '';
     1148    padding: 0;
    11361149}
    11371150
Note: See TracChangeset for help on using the changeset viewer.