[wp-trac] [WordPress Trac] #49741: WP_REST_Terms_Controller::create_item_permissions_check did not work as expected

WordPress Trac noreply at wordpress.org
Tue Mar 31 15:25:24 UTC 2020


#49741: WP_REST_Terms_Controller::create_item_permissions_check did not work as
expected
--------------------------+-----------------------
 Reporter:  jihaisse      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  REST API      |     Version:  4.9.8
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |     Focuses:  rest-api
--------------------------+-----------------------
Changes (by TimothyBlynJacobs):

 * status:  new => closed
 * resolution:   => invalid
 * version:  trunk => 4.9.8
 * component:  General => REST API
 * milestone:  Awaiting Review =>


Comment:

 Hi @jihaisse!

 Thanks for opening a ticket and welcome to trac! This is in fact the
 intentional behavior, and was adjusted this way to match the Classic
 Editor. You can read the details in #44096.

 In this case, if you wanted that behavior, I think the best plan of action
 would be to subclass the `WP_REST_Terms_Controller` for your taxonomy, and
 specify it as the `rest_controller_class` when registering your taxonomy.

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


More information about the wp-trac mailing list