[wp-trac] [WordPress Trac] #44152: Comments "up" link does not cover custom post types and/or REST controllers

WordPress Trac noreply at wordpress.org
Fri May 18 21:12:26 UTC 2018


#44152: Comments "up" link does not cover custom post types and/or REST controllers
--------------------------+-----------------------------
 Reporter:  dsifford      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  REST API      |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:  rest-api      |
--------------------------+-----------------------------
 Currently, `WP_REST_Comments_Controller` only covers built-in post types
 under the `/wp/v2/` namespace when making "up" links.

 https://core.trac.wordpress.org/browser/trunk/src/wp-includes/rest-
 api/endpoints/class-wp-rest-comments-controller.php#L997

 Note that `wp/v2` is hard-coded on the line above.

 This causes issues if a comment falls under a custom post type with it's
 own REST controller falling under a different namespace.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44152>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list