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


git-svn-id: https://develop.svn.wordpress.org/trunk@37161 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Aaron Jorbin 2016-04-06 00:34:23 +00:00
parent 68a8211a55
commit 2b5f172b57
2 changed files with 16 additions and 3 deletions

View File

@ -211,9 +211,9 @@ if ( $comment->comment_approved != '0' ) { // if not unapproved
</tr>
<tr>
<th scope="row"><?php /* translators: field name in comment form */ _ex('Comment', 'noun'); ?></th>
<td>
<td class="comment-content">
<?php comment_text( $comment ); ?>
<p><a href="<?php echo admin_url( "comment.php?action=editcomment&amp;c={$comment->comment_ID}" ); ?>"><?php esc_attr_e( 'Edit' ); ?></a></p>
<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>
</td>
</tr>
</table>

View File

@ -1131,10 +1131,23 @@ p.popular-tags a {
padding: 10px 15px;
}
.comment-ays td p:last-of-type {
.comment-ays .comment-content a[href]:after {
content: '(' attr( href ) ')';
display: inline-block;
padding: 0 4px;
color: #72777C;
font-size: 13px;
}
.comment-ays .comment-content p.edit-comment {
margin-top: 10px;
}
.comment-ays .comment-content p.edit-comment a[href]:after {
content: '';
padding: 0;
}
.comment-ays-submit .button-cancel {
margin-left: 1em;
}