[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 16:53:54 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 joehoyle):

 Is `validate_callback' => null, // skip built-in validation of 'email'. `
 needed? The validation should actually be hooked via the
 `sanitize_callback` now the sanitize callback can return a WP_Error.
 Nothing should default to `validate_callback`, see
 https://github.com/WordPress/WordPress/blob/master/wp-includes/rest-
 api.php#L858.

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


More information about the wp-trac mailing list