[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:47:42 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 This is caused by `WP_REST_Server->dispatch()` calling
 `WP_REST_Request->has_valid_params()`.
 See: https://github.com/WordPress/WordPress/blob/master/wp-includes/rest-
 api/class-wp-rest-server.php#L865

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


More information about the wp-trac mailing list