[wp-trac] [WordPress Trac] #38622: XML-RPC wp_newComment should return an error when a field exceeds the maximum length

WordPress Trac noreply at wordpress.org
Fri Jun 21 09:17:18 UTC 2019


#38622: XML-RPC wp_newComment should return an error when a field exceeds the
maximum length
-------------------------------------------------+-------------------------
 Reporter:  rachelbaker                          |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  low                                  |   Milestone:  Awaiting
                                                 |  Review
Component:  XML-RPC                              |     Version:  4.5
 Severity:  normal                               |  Resolution:
 Keywords:  good-first-bug has-patch needs-      |     Focuses:
  testing                                        |
-------------------------------------------------+-------------------------
Changes (by kingkero):

 * keywords:  needs-patch good-first-bug => good-first-bug has-patch needs-
     testing


Comment:

 Added max lengths check via the `wp_check_comment_data_max_lengths()`
 function. Respect the `$avoid_die` flag with the same logic that
 `wp_allow_comment()` uses

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/38622#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list