From 249a6cdd180a13d67e530da311df958f8becf86c Mon Sep 17 00:00:00 2001 From: nacin Date: Sun, 16 May 2010 06:38:58 +0000 Subject: [PATCH] Use p instead of definition list for allowed tags in comment_form(). props demetris. Style the new markup in Twenty Ten. see #10910. git-svn-id: http://svn.automattic.com/wordpress/trunk@14689 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyten/style.css | 5 ++--- wp-includes/comment-template.php | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/wp-content/themes/twentyten/style.css b/wp-content/themes/twentyten/style.css index 2fe19db34..11a399cbf 100644 --- a/wp-content/themes/twentyten/style.css +++ b/wp-content/themes/twentyten/style.css @@ -1061,13 +1061,12 @@ h3#reply-title { #respond textarea { width:98%; } -#respond dt, -#respond dd { +#respond .form-allowed-tags { color: #888; font-size: 12px; line-height: 18px; } -#respond dd code { +#respond .form-allowed-tags code { font-size: 11px; } #respond .form-submit { diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php index c3b24afe2..01c6495d3 100644 --- a/wp-includes/comment-template.php +++ b/wp-includes/comment-template.php @@ -1509,7 +1509,7 @@ function comment_form( $args = array(), $post_id = null ) { 'must_log_in' => '

' . sprintf( __( 'You must be logged in to post a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '

', 'logged_in_as' => '

' . sprintf( __( 'Logged in as %2$s. Log out?' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '

', 'comment_notes_before' => '

' . __( 'Your email address will not be published.' ) . ( $req ? $required_text : '' ) . '

', - 'comment_notes_after' => '
' . __( 'You may use these HTML tags and attributes:' ) . '
' . allowed_tags() . '
', + 'comment_notes_after' => '

' . sprintf( __( 'You may use these HTML tags and attributes: %s' ), ' ' . allowed_tags() . '' ) . '

', 'id_form' => 'commentform', 'id_submit' => 'submit', 'title_reply' => __( 'Leave a Reply' ),