Make WordPress Core


Ignore:
Timestamp:
06/19/2018 12:11:46 PM (6 years ago)
Author:
azaozz
Message:

Privacy: append (Draft) to draft page titles in the page drop-down on the Privacy Settings screen.

Props allendav, desrosj.
Fixes #44100.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/admin-filters.php

    r43230 r43376  
    150150// Update the cached policy info when the policy page is updated.
    151151add_action( 'post_updated', array( 'WP_Privacy_Policy_Content', '_policy_page_updated' ) );
     152
     153// Append '(Draft)' to draft page titles in the privacy page dropdown.
     154add_filter( 'list_pages', '_wp_privacy_settings_filter_draft_page_titles', 10, 2 );
Note: See TracChangeset for help on using the changeset viewer.