[wp-trac] [WordPress Trac] #40383: Comments Controller is not checking permission of Custom Post Type controller class

WordPress Trac noreply at wordpress.org
Fri Jul 12 13:13:58 UTC 2019


#40383: Comments Controller is not checking permission of Custom Post Type
controller class
--------------------------------------------+------------------------------
 Reporter:  langan                          |       Owner:
                                            |  TimothyBlynJacobs
     Type:  defect (bug)                    |      Status:  accepted
 Priority:  normal                          |   Milestone:  Future Release
Component:  REST API                        |     Version:  4.7
 Severity:  normal                          |  Resolution:
 Keywords:  needs-unit-tests needs-refresh  |     Focuses:
--------------------------------------------+------------------------------

Comment (by joehoyle):

 Rather than putting it on `WP_Post_Type`, could we just have a
 `WP_Posts_REST_Controller::get_for_post_type()`, thinking that's a bit
 more encapsulated / stays in the context of the rest api.

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


More information about the wp-trac mailing list