[wp-trac] [WordPress Trac] #33742: Menu Customizer: Adding draft items?
WordPress Trac
noreply at wordpress.org
Thu Aug 25 12:32:36 UTC 2016
#33742: Menu Customizer: Adding draft items?
------------------------------------+-----------------------------
Reporter: pavelevap | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.7
Component: Menus | Version: 4.3
Severity: normal | Resolution:
Keywords: has-patch dev-feedback | Focuses: administration
------------------------------------+-----------------------------
Comment (by welcher):
@westonruter It honestly feels like a bug to me. The query that is pulling
the search results doesn't have `'post_status' => 'any'` set. In fact, it
had no `post_status` parameter set at all - which (unless I'm missing
something ) should mean that only published posts are being queried.
I haven't investigated but could there be a `pre_get_posts` happening that
would change this or does having the `s` param disregard the
`post_status`?
If we determine that this is a bug, I'm happy to remove my patch and mark
it as a Good First Bug - feeling a little guilty about stealing a one-
liner :)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33742#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list