From 898bb2ed34286c54a3b907453085bb2fb7d619f9 Mon Sep 17 00:00:00 2001 From: Konstantin Obenland Date: Fri, 19 Jun 2015 14:15:26 +0000 Subject: [PATCH] Remove allowed tags from comment form. It can be confusing to users and for most it is not relevant. Commenters comfortable with HTML will know which tags are likely to be accepted. Props krogsgard, rachelbaker. Fixes #30157. Built from https://develop.svn.wordpress.org/trunk@32858 git-svn-id: http://core.svn.wordpress.org/trunk@32829 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment-template.php | 5 ++--- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php index 0cde7f5700..26e2818b1d 100644 --- a/wp-includes/comment-template.php +++ b/wp-includes/comment-template.php @@ -2195,7 +2195,6 @@ function wp_list_comments( $args = array(), $comments = null ) { * @type string $comment_notes_before HTML element for a message displayed before the comment form. * Default 'Your email address will not be published.'. * @type string $comment_notes_after HTML element for a message displayed after the comment form. - * Default 'You may use these HTML tags and attributes ...'. * @type string $id_form The comment form element id attribute. Default 'commentform'. * @type string $id_submit The comment submit element id attribute. Default 'submit'. * @type string $class_submit The comment submit element class attribute. Default 'submit'. @@ -2251,13 +2250,13 @@ function comment_form( $args = array(), $post_id = null ) { $fields = apply_filters( 'comment_form_default_fields', $fields ); $defaults = array( 'fields' => $fields, - 'comment_field' => '

', + 'comment_field' => '

', /** This filter is documented in wp-includes/link-template.php */ 'must_log_in' => '

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

', /** This filter is documented in wp-includes/link-template.php */ 'logged_in_as' => '

' . sprintf( __( 'Logged in as %2$s. Log out?' ), get_edit_user_link(), $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' => '

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

', + 'comment_notes_after' => '', 'id_form' => 'commentform', 'id_submit' => 'submit', 'class_submit' => 'submit', diff --git a/wp-includes/version.php b/wp-includes/version.php index 8cc9f7e9fd..2d1e87560e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.3-alpha-32857'; +$wp_version = '4.3-alpha-32858'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.