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

Built from https://develop.svn.wordpress.org/trunk@37161


git-svn-id: http://core.svn.wordpress.org/trunk@37127 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Aaron Jorbin 2016-04-06 00:35:27 +00:00
parent 1bb3dd0ee7
commit 6c24223def
6 changed files with 33 additions and 7 deletions

View File

@ -211,9 +211,9 @@ if ( $comment->comment_approved != '0' ) { // if not unapproved
</tr> </tr>
<tr> <tr>
<th scope="row"><?php /* translators: field name in comment form */ _ex('Comment', 'noun'); ?></th> <th scope="row"><?php /* translators: field name in comment form */ _ex('Comment', 'noun'); ?></th>
<td> <td class="comment-content">
<?php comment_text( $comment ); ?> <?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> </td>
</tr> </tr>
</table> </table>

View File

@ -1131,10 +1131,23 @@ p.popular-tags a {
padding: 10px 15px; 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; margin-top: 10px;
} }
.comment-ays .comment-content p.edit-comment a[href]:after {
content: '';
padding: 0;
}
.comment-ays-submit .button-cancel { .comment-ays-submit .button-cancel {
margin-right: 1em; margin-right: 1em;
} }

File diff suppressed because one or more lines are too long

View File

@ -1131,10 +1131,23 @@ p.popular-tags a {
padding: 10px 15px; 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; margin-top: 10px;
} }
.comment-ays .comment-content p.edit-comment a[href]:after {
content: '';
padding: 0;
}
.comment-ays-submit .button-cancel { .comment-ays-submit .button-cancel {
margin-left: 1em; margin-left: 1em;
} }

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.5-RC1-37160'; $wp_version = '4.5-RC1-37161';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.