[wp-trac] [WordPress Trac] #44096: REST API: Taxonomy and term endpoints should use correct permission checks

WordPress Trac noreply at wordpress.org
Wed Jul 11 05:57:29 UTC 2018


#44096: REST API: Taxonomy and term endpoints should use correct permission checks
-------------------------------------------------+-------------------------
 Reporter:  danielbachhuber                      |       Owner:  pento
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  normal                               |   Milestone:  4.9.8
Component:  Taxonomy                             |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests needs-      |     Focuses:  rest-api
  refresh                                        |
-------------------------------------------------+-------------------------
Changes (by pento):

 * keywords:  has-patch has-unit-tests commit => has-patch has-unit-tests
     needs-refresh


Comment:

 After applying [attachment:"44096.1.diff"] to trunk, I get two failing
 unit tests:

 {{{
 1) WP_Test_REST_Tags_Controller::test_create_item_contributor
 Failed asserting that 403 matches expected 201.

 /wordpress-develop/tests/phpunit/tests/rest-api/rest-tags-
 controller.php:640

 2) WP_Test_REST_Taxonomies_Controller::test_get_items_context_edit
 Failed asserting that 3 matches expected 2.

 /wordpress-develop/tests/phpunit/tests/rest-api/rest-taxonomies-
 controller.php:72
 }}}

 @danielbachhuber, can you get them fixed up, please?

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


More information about the wp-trac mailing list