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

WordPress Trac noreply at wordpress.org
Tue Nov 29 16:09:45 UTC 2016


#38971: 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
---------------------------------------------+-----------------------

Comment (by jnylen0):

 In [attachment:38971.4.diff]:

 - Combine code and tests from @hnle into one patch.
 - Remove duplicate error messages.
 - Handle empty author data on comment update as well as create.
 - Test suite fixes: reset options and `rest_allow_anonymous_comments`
 after each test.
 - More tests.

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


More information about the wp-trac mailing list