From 2b5f172b57cb3a4a1d2119c50e4c9a3339ae628c Mon Sep 17 00:00:00 2001 From: Aaron Jorbin Date: Wed, 6 Apr 2016 00:34:23 +0000 Subject: [PATCH] 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 --- src/wp-admin/comment.php | 4 ++-- src/wp-admin/css/edit.css | 15 ++++++++++++++- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/wp-admin/comment.php b/src/wp-admin/comment.php index ffca93ef88..ba700ba64a 100644 --- a/src/wp-admin/comment.php +++ b/src/wp-admin/comment.php @@ -211,9 +211,9 @@ if ( $comment->comment_approved != '0' ) { // if not unapproved - + -

comment_ID}" ); ?>">

+

comment_ID}" ); ?>">

diff --git a/src/wp-admin/css/edit.css b/src/wp-admin/css/edit.css index f1bf46d4b6..d4108ae5ff 100644 --- a/src/wp-admin/css/edit.css +++ b/src/wp-admin/css/edit.css @@ -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; }