[wp-trac] [WordPress Trac] #45394: get_posts fails to return results when accessing admin with a custom user role

WordPress Trac noreply at wordpress.org
Fri Dec 7 01:28:01 UTC 2018


#45394: get_posts fails to return results when accessing admin with a custom user
role
-------------------------------+------------------------------
 Reporter:  tonydjukic         |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Query              |     Version:  4.9.8
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------
Changes (by SergeyBiryukov):

 * keywords:   => reporter-feedback


Comment:

 Hi @tonydjukic, welcome to WordPress Trac! Thanks for the report.

 1. Could you share the code that creates the `seasonal_sessions` post
 type? Does it use any specific `capability_type`, `capabilities`, or
 `map_meta_cap` arguments?
 2. Does the issue still happen with all plugins disabled and a default
 theme (Twenty Seventeen) activated?

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


More information about the wp-trac mailing list