[wp-trac] [WordPress Trac] #38971: REST API: rest_comment_author_required should not allow empty value

WordPress Trac noreply at wordpress.org
Thu Dec 1 17:19:25 UTC 2016


#38971: REST API: rest_comment_author_required should not allow empty value
-------------------------------------------------+-------------------------
 Reporter:  hnle                                 |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  4.7
Component:  REST API                             |     Version:  trunk
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests commit      |     Focuses:  rest-api
  dev-feedback                                   |
-------------------------------------------------+-------------------------

Comment (by rachelbaker):

 @joehoyle but because the field type is `email` (which has built-in schema
 validation) the validation callback still runs, so if you try to pass `''`
 for `author_email` you get a `rest_invalid_param` error.

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


More information about the wp-trac mailing list