Ticket #10377: 10377.2.patch
File 10377.2.patch, 1.9 KB (added by , 8 years ago) |
---|
-
src/wp-comments-post.php
130 130 wp_die( __( '<strong>ERROR</strong>: please type a comment.' ), 200 ); 131 131 } 132 132 133 if ( 65535 < strlen( $comment_content ) ) { 134 wp_die( __( '<strong>ERROR</strong>: your comment is too large.' ), 200 ); 135 } 136 133 137 $comment_parent = isset($_POST['comment_parent']) ? absint($_POST['comment_parent']) : 0; 134 138 135 139 $commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_email', 'comment_author_url', 'comment_content', 'comment_type', 'comment_parent', 'user_ID'); -
src/wp-includes/comment-template.php
2250 2250 $fields = apply_filters( 'comment_form_default_fields', $fields ); 2251 2251 $defaults = array( 2252 2252 'fields' => $fields, 2253 'comment_field' => '<p class="comment-form-comment"><label for="comment">' . _x( 'Comment', 'noun' ) . '</label> <textarea id="comment" name="comment" cols="45" rows="8" aria-required="true" required="required"></textarea></p>',2253 'comment_field' => '<p class="comment-form-comment"><label for="comment">' . _x( 'Comment', 'noun' ) . '</label> <textarea id="comment" name="comment" cols="45" rows="8" maxlength="65535" aria-required="true" required="required"></textarea></p>', 2254 2254 /** This filter is documented in wp-includes/link-template.php */ 2255 2255 'must_log_in' => '<p class="must-log-in">' . sprintf( __( 'You must be <a href="%s">logged in</a> to post a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>', 2256 2256 /** This filter is documented in wp-includes/link-template.php */