[wp-trac] [WordPress Trac] #8592: Private Pages not listed in the Parent dropdown
WordPress Trac
wp-trac at lists.automattic.com
Thu Jul 28 09:30:04 UTC 2011
#8592: Private Pages not listed in the Parent dropdown
-------------------------------------+-----------------------------
Reporter: mtdewvirus | Owner: nacin
Type: feature request | Status: reviewing
Priority: normal | Milestone: Future Release
Component: Administration | Version: 2.7
Severity: major | Resolution:
Keywords: has-patch needs-refresh |
-------------------------------------+-----------------------------
Changes (by davecpage):
* cc: davecpage (added)
Comment:
Just ran across this issue for a client. They wanted to be able to
structure a large quantity of pages, with the pages still marked as Draft
or Pending, but the parent page dropdowns shown within the Quick Edit or
Page Attribute metabox would only show Published pages.
Fortunately there is a filter on the arguments used for the Quick Edit
called 'quick_edit_dropdown_pages_args' which i've hooked into the add the
other statuses (see code below). The Page Attributes metabox doesn't have
any filter. So I changed the code to add one (patch provided - meta-
boxes.diff ).
None of the patches previously on this ticket seem to add this filter, but
it'd be nice for it to be there to match up with the Quick Edit one at
least.
{{{
function show_all_pages_in_admin_parent_pages_dropdown($args) {
$args['post_status'] = array('publish', 'draft', 'pending', 'private');
return $args;
}
add_filter( 'quick_edit_dropdown_pages_args',
'show_all_pages_in_admin_parent_pages_dropdown' );
add_filter( 'page_attributes_dropdown_pages_args',
'show_all_pages_in_admin_parent_pages_dropdown' );
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/8592#comment:125>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list