[wp-trac] [WordPress Trac] #29850: Theme Function Filter disables Admin Dashboard Post Filter
WordPress Trac
noreply at wordpress.org
Fri Oct 3 12:10:44 UTC 2014
#29850: Theme Function Filter disables Admin Dashboard Post Filter
--------------------------+-----------------------------
Reporter: antonv | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Query | Version: 3.9.2
Severity: minor | Resolution: invalid
Keywords: | Focuses: administration
--------------------------+-----------------------------
Changes (by SergeyBiryukov):
* status: new => closed
* resolution: => invalid
* focuses: => administration
* component: General => Query
* milestone: Awaiting Review =>
Comment:
`'pre_get_posts'`
[http://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts#A_Warning_About_Admin_Usage
runs in the admin too]. You should add an `is_admin()` check to your
function.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29850#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list