[wp-trac] [WordPress Trac] #40251: Querying for single user in REST API after unsetting rest_user_query returns rest_user_cannot_view

WordPress Trac noreply at wordpress.org
Fri Mar 24 18:56:53 UTC 2017


#40251: Querying for single user in REST API after unsetting rest_user_query
returns rest_user_cannot_view
--------------------------+-----------------------------
 Reporter:  daduenn       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  REST API      |    Version:  4.7.3
 Severity:  normal        |   Keywords:
  Focuses:  rest-api      |
--------------------------+-----------------------------
 Unsetting has_published_posts with the rest_user_query filter hook allows
 users who do not have published posts to show in /wp-json/wp/v2/Users . It
 seems that the same should work similarly for single users (/wp-
 json/wp/v2/Users/23) but it does not. This seems like a bug.

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


More information about the wp-trac mailing list