WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #10377, comment 20


Ignore:
Timestamp:
09/11/2015 06:37:46 PM (6 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10377, comment 20

    initial v1  
    33We 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.
    44
    5 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.
     5Also: what about maxlength and strlen() for the other comment fields? If we are adding that for the textarea would be good to add everywhere.