[wp-trac] [WordPress Trac] #38811: REST API: ambiguous strings

WordPress Trac noreply at wordpress.org
Tue Nov 22 16:42:07 UTC 2016


#38811: REST API: ambiguous strings
--------------------------+-----------------------
 Reporter:  Presskopp     |       Owner:  rmccue
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  4.7
Component:  REST API      |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  docs
--------------------------+-----------------------

Comment (by joehoyle):

 This looks good, apart from I don't think we should be using the `post`
 word in `class-wp-rest-post-types-controller.php`.

 > Technically a page is a post, so "post" is probably fine here too.

 This might be true, however via the API, CPTs are not called "posts"
 anywhere, so this language would confuse things I think.

 I think we should either use the post type labels are part of these
 strings, or still with "resource" in the case of posts.

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


More information about the wp-trac mailing list