[wp-trac] [WordPress Trac] #41411: REST API: Terms endpoint responses for PUT & POST requests don't set context to edit

WordPress Trac noreply at wordpress.org
Wed Aug 21 17:52:30 UTC 2019


#41411: REST API: Terms endpoint responses for PUT & POST requests don't set
context to edit
--------------------------------------+-------------------------
 Reporter:  westonruter               |       Owner:  kadamwhite
     Type:  defect (bug)              |      Status:  assigned
 Priority:  normal                    |   Milestone:  5.3
Component:  REST API                  |     Version:  4.7
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-------------------------

Comment (by TimothyBlynJacobs):

 This looks good to me. The test needs to use traditional array syntax
 though. I'd also use `assertArrayHasKey` and `assertArrayNotHasKey`
 instead of `assertTrue( isset )`.

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


More information about the wp-trac mailing list