[wp-trac] [WordPress Trac] #43238: Media Library is empty on multiple sites (was: `suppress_filters` not set in `pre_get_posts` hook)
WordPress Trac
noreply at wordpress.org
Tue Feb 6 23:17:59 UTC 2018
#43238: Media Library is empty on multiple sites
-------------------------------+-----------------------------------------
Reporter: adampatterson | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 4.9.4
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses: javascript, administration
-------------------------------+-----------------------------------------
Changes (by adampatterson):
* keywords: => reporter-feedback
* focuses: => javascript, administration
* component: Query => Media
Comment:
I don't know enough about suppress_filters, but it works fine. I was
attempting to display draft posts to logged in admin users. It seems that
suppress_filters is not always defined.
https://codex.wordpress.org/Template_Tags/get_posts
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43238#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list