[wp-trac] [WordPress Trac] #44967: Add status filter to allow suppression of drafts from Privacy Policy select

WordPress Trac noreply at wordpress.org
Wed Sep 19 17:36:44 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           |   Keywords:
  Focuses:  privacy          |
-----------------------------+-----------------------------
 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

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44967>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list