[wp-trac] [WordPress Trac] #8592: Private Pages not listed in the Parent dropdown
WordPress Trac
wp-trac at lists.automattic.com
Mon Jan 24 00:25:57 UTC 2011
#8592: Private Pages not listed in the Parent dropdown
----------------------------+-----------------------------
Reporter: mtdewvirus | Owner: bsamrajni
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Future Release
Component: Administration | Version: 2.7
Severity: major | Resolution:
Keywords: needs-patch |
----------------------------+-----------------------------
Changes (by nacin):
* keywords: has-patch => needs-patch
Comment:
I don't think this logic belongs in get_pages(). It's too low in the
stack.
Instead, get_pages() should be allowed to accept an array for post_status.
Each status should probably be verified before then going into an IN()
into the query.
Then the parent dropdown can call get_pages() and request private pages as
well -- the cap check would need to occur at that level.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/8592#comment:95>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list