[wp-trac] [WordPress Trac] #44967: Add status filter to allow suppression of drafts from Privacy Policy select
WordPress Trac
noreply at wordpress.org
Sat Oct 6 08:14:29 UTC 2018
#44967: Add status filter to allow suppression of drafts from Privacy Policy select
-----------------------------+------------------------------
Reporter: garrett-eclipse | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Privacy | Version:
Severity: normal | Resolution:
Keywords: | Focuses: privacy
-----------------------------+------------------------------
Old description:
> Hello,
>
> There's been several mentions of Drafts being available to the Privacy
> Policy page selector. I understand why they're there (reason -
> https://core.trac.wordpress.org/ticket/44356#comment:4), but it would be
> nice to enable admins to filter out drafts if they so desire.
>
> So am proposing a variable `privacy_policy_page_supported_post_stati`
> which by default is set to `array( 'publish', 'draft' )` and is put
> through a filter and then used in both the `$has_pages` check and the
> `wp_dropdown_pages` call.
> $has_pages check - https://github.com/WordPress/WordPress/blob/master/wp-
> admin/privacy.php#L198-L207
> wp_dropdown_pages call -
> https://github.com/WordPress/WordPress/blob/master/wp-
> admin/privacy.php#L217-L225
>
> This will enable users to remove drafts from the select.
>
> Thanks
New description:
Hello,
There's been several mentions of Drafts being available to the Privacy
Policy page selector. I understand why they're there (reason -
https://core.trac.wordpress.org/ticket/44356#comment:4), but it would be
nice to enable admins to filter out drafts if they so desire.
So am proposing a variable `privacy_policy_page_supported_post_stati`
which by default is set to `array( 'publish', 'draft' )` and is put
through a filter and then used in both the `$has_pages` check and the
`wp_dropdown_pages` call.
$has_pages check - https://github.com/WordPress/WordPress/blob/4.9.8/wp-
admin/privacy.php#L198-L207
wp_dropdown_pages call - https://github.com/WordPress/WordPress/blob/4.9.8
/wp-admin/privacy.php#L214-L222
This will enable users to remove drafts from the select.
Thanks
--
Comment (by garrett-eclipse):
Updated URLs to permalinks.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44967#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list