_wp_privacy_settings_filter_draft_page_titles

The timeline below displays how wordpress function _wp_privacy_settings_filter_draft_page_titles has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.5

/**
 * Appends '(Draft)' to draft page titles in the privacy page dropdown
 * so that unpublished content is obvious.
 *
 * @since 4.9.8
 * @access private
 *
 * @param string  $title Page title.
 * @param WP_Post $page  Page data object.
 * @return string Page title.
 */
function _wp_privacy_settings_filter_draft_page_titles($title, $page)
{
    if ('draft' === $page->post_status && 'privacy' === get_current_screen()->id) {
        /* translators: %s: Page title. */
        $title = sprintf(__('%s (Draft)'), $title);
    }
    return $title;
}

WordPress Version: 5.3

/**
 * Appends '(Draft)' to draft page titles in the privacy page dropdown
 * so that unpublished content is obvious.
 *
 * @since 4.9.8
 * @access private
 *
 * @param string  $title Page title.
 * @param WP_Post $page  Page data object.
 *
 * @return string Page title.
 */
function _wp_privacy_settings_filter_draft_page_titles($title, $page)
{
    if ('draft' === $page->post_status && 'privacy' === get_current_screen()->id) {
        /* translators: %s: Page title. */
        $title = sprintf(__('%s (Draft)'), $title);
    }
    return $title;
}

WordPress Version: .10

/**
 * Appends '(Draft)' to draft page titles in the privacy page dropdown
 * so that unpublished content is obvious.
 *
 * @since 4.9.8
 * @access private
 *
 * @param string  $title Page title.
 * @param WP_Post $page  Page data object.
 *
 * @return string Page title.
 */
function _wp_privacy_settings_filter_draft_page_titles($title, $page)
{
    if ('draft' === $page->post_status && 'privacy' === get_current_screen()->id) {
        /* translators: %s: Page Title */
        $title = sprintf(__('%s (Draft)'), $title);
    }
    return $title;
}