Wordpress/tests/phpunit/includes
Rachel Baker 0e85f45cb4 Comments: Restrict the maximum characters for input fields within the comments template.
Added hardcoded maxlength attributes on the author, author_email, author_url, and comment_field input markup. These can be modified via the comment_form_defaults filter. Added logic in wp_handle_comment_submission() to return a WP_Error when the comment_author, comment_author_url, or comment_content values exceed the max length of their columns. Introduces wp_get_comment_column_max_length() which returns the max column length for a given column name, and is filterable. Unit tests included for the error conditions in wp_handle_comment_submission()

Fixes #10377.

Props westonruter rachelbaker.


git-svn-id: https://develop.svn.wordpress.org/trunk@36272 602fd350-edb4-49c9-b593-d223f7449a82
2016-01-13 01:24:46 +00:00
..
bootstrap.php
exceptions.php
factory.php
functions.php
install.php Tests: Use the default_storage_engine MySQL option on newer MySQL versions. 2015-12-21 22:26:52 +00:00
mock-fs.php
mock-image-editor.php
mock-mailer.php
speed-trap-listener.php
spy-rest-server.php
testcase-ajax.php
testcase-canonical.php Tests: Remove some debug that's slipped in at some point. 2016-01-09 06:11:58 +00:00
testcase-rest-api.php
testcase-xmlrpc.php
testcase.php Comments: Commit tests missed in [35848]. 2015-12-10 03:15:44 +00:00
trac.php
utils.php Comments: Restrict the maximum characters for input fields within the comments template. 2016-01-13 01:24:46 +00:00
wp-profiler.php