[wp-trac] [WordPress Trac] #10377: Comment fields should have max lengths
WordPress Trac
noreply at wordpress.org
Fri Sep 11 17:42:32 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 rachelbaker):
Replying to [comment:18 SergeyBiryukov]:
> The `maxlength` attribute is probably redundant (and would cause an
extra query on front-end), I think just checking the length in `wp-
comments-post.php` would be enough.
The issue I see there is that if a commenter was to leave a 65525+ comment
they wouldn't know it was too long until they press submit. Including
"max-length" in the comment form template would at least give the
commenter feedback that they have reached some sort of limit when they try
to type the 65526 character.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/10377#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list