[wp-trac] [WordPress Trac] #38698: REST API: Enable page templates for all post types

WordPress Trac noreply at wordpress.org
Mon Nov 7 19:56:09 UTC 2016


#38698: REST API: Enable page templates for all post types
-------------------------------+--------------------------------------
 Reporter:  swissspidy         |      Owner:
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  4.7
Component:  Posts, Post Types  |    Version:  trunk
 Severity:  normal             |   Keywords:  has-patch has-unit-tests
  Focuses:  rest-api           |
-------------------------------+--------------------------------------
 [38951] enabled setting custom templates for all templates and not just
 pages.

 With that being said, I just noticed that
 `WP_REST_Posts_Controller::get_item_schema()` still has a `'page' ===
 $this->post_type` check.

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


More information about the wp-trac mailing list