From b9b36d1c5710ca2dce1f84212d8f7031d361e8ff Mon Sep 17 00:00:00 2001 From: Helen Hou-Sandi Date: Tue, 16 Jun 2015 18:53:16 +0000 Subject: [PATCH] Comments: Better markup for the edit screen. Previously there were no labels, and since labels can't contain links and the links were of dubious value, we've removed those. props afercia, DrewAPicture. fixes #31326. git-svn-id: https://develop.svn.wordpress.org/trunk@32796 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/css/common.css | 7 +++++ src/wp-admin/edit-form-comment.php | 47 +++++++++++++----------------- 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/src/wp-admin/css/common.css b/src/wp-admin/css/common.css index a11d8eff2c..142e20dc52 100644 --- a/src/wp-admin/css/common.css +++ b/src/wp-admin/css/common.css @@ -2070,6 +2070,13 @@ td.media-icon img { margin-top: 0; } +.edit-comment-author { + font-size: 14px; + line-height: 1.4; + font-weight: 600; + color: #222; +} + #namediv h3 label { vertical-align: baseline; } diff --git a/src/wp-admin/edit-form-comment.php b/src/wp-admin/edit-form-comment.php index c27164ed08..7aa6f44234 100644 --- a/src/wp-admin/edit-form-comment.php +++ b/src/wp-admin/edit-form-comment.php @@ -21,48 +21,39 @@ if ( !defined('ABSPATH') )
-
+
-

+
+ - + - - + + - - + +
- comment_author_email ) { - printf( __( 'E-mail (%s):' ), get_comment_author_email_link( __( 'send e-mail' ), '', '' ) ); - } else { - _e( 'E-mail:' ); - } -?> + +
- comment_author_url ) && 'http://' != $comment->comment_author_url ) { - $link = '' . __('visit site') . ''; - $author = get_comment_author( $comment->comment_ID ); - /** This filter is documented in wp-includes/comment-template.php */ - printf( __( 'URL (%s):' ), apply_filters( 'get_comment_author_link', $link, $author, $comment->comment_ID ) ); - } else { - _e( 'URL:' ); - } ?> + +

+
' . __( 'Comment' ) . ''; $quicktags_settings = array( 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,close' ); wp_editor( $comment->comment_content, 'content', array( 'media_buttons' => false, 'tinymce' => false, 'quicktags' => $quicktags_settings ) ); wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?> @@ -85,15 +76,16 @@ if ( !defined('ABSPATH') )
-
+
+

-
+
- +
@@ -104,7 +96,8 @@ $datef = __( 'M j, Y @ H:i' ); $stamp = __('Submitted on: %1$s'); $date = date_i18n( $datef, strtotime( $comment->comment_date ) ); ?> -  + +