[wp-trac] [WordPress Trac] #8592: Private Pages not listed in the Parent dropdown
WordPress Trac
noreply at wordpress.org
Tue Nov 1 14:50:06 UTC 2016
#8592: Private Pages not listed in the Parent dropdown
-------------------------------------------------+-------------------------
Reporter: mtdewvirus | Owner:
Type: defect (bug) | SergeyBiryukov
Priority: normal | Status: assigned
Component: Posts, Post Types | Milestone: Future
Severity: critical | Release
Keywords: ux-feedback needs-testing has-patch | Version:
| Resolution:
| Focuses:
| administration
-------------------------------------------------+-------------------------
Changes (by pscolv):
* version: 2.7 =>
* type: enhancement => defect (bug)
* severity: major => critical
Comment:
Hi all, I'm stumbling upon this issue today, after a few months of using
WP, and I'm very surprised to see that this issue has been pending during
8 years already...
I guess there is a general consensus from many users about how this should
be managed, ie that private and protected pages are visible in the
"parent" dropdown, and that changing the privacy status of a page doesn't
affect its hierarchical relationships.
I tried the snippet provided in comment #188, and it seems to fix both
aspects. Why wasn't it already integrated into the core ?
// Add draft / aprentpending etc for pages in the drop down
add_filter( 'page_attributes_dropdown_pages_args',
'wps_dropdown_pages_args_add_parents' );
add_filter( 'quick_edit_dropdown_pages_args',
'wps_dropdown_pages_args_add_parents' );
/**
* Add private/draft/future/pending pages to parent dropdown.
*/
function wps_dropdown_pages_args_add_parents( $dropdown_args, $post = NULL
) {
$dropdown_args['post_status'] = array( 'publish', 'draft', 'pending',
'future', 'private', );
return $dropdown_args;
}
Regards,
Pascal.
BTW I cannot choose the latest (4.6) WP version in the drop down list
here... it seems to stop at 2.7... I hope this forum is still active
though !
--
Ticket URL: <https://core.trac.wordpress.org/ticket/8592#comment:213>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list