[wp-trac] [WordPress Trac] #10377: Comment fields should have max lengths
WordPress Trac
noreply at wordpress.org
Fri Sep 11 18:36:43 UTC 2015
#10377: Comment fields should have max lengths
------------------------------------+--------------------------
Reporter: muriloazevedo | Owner: rachelbaker
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 4.4
Component: Comments | Version: 2.8
Severity: normal | Resolution:
Keywords: has-patch dev-feedback | Focuses:
------------------------------------+--------------------------
Comment (by azaozz):
Don't think there's a problem to have hard-coded maxlength. 65k characters
is a lot of text, about 11,000 words or 44 printed pages :)
We already have a filter `'comment_form_default_fields'`. Can add an array
with hard-coded lengths for the (very rare) cases when somebody wants
comments longer than that. Then run the same filter on checking the POST
lengths. Or maybe have a function similar to
wp_get_comment_content_max_length() that will filter and return the hard-
coded values.
Also: what about maxlength and strlen() lengths for the other comment
fields? If we are adding that for the textarea would be good to add
everywhere.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/10377#comment:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list