'<p>' .
__( 'The Privacy screen lets you either build a new privacy-policy page or choose one you already have to show.'
) . '</p>' .
'<p>' .
__( 'This screen includes suggestions to help you write your own privacy policy. However, it is your responsibility to use these resources correctly, to provide the information required by your privacy policy, and to keep this information current and accurate.'
) . '</p>',
));
get_current_screen()->
set_help_sidebar( '<p><strong>' .
__( 'For more information:'
) . '</strong></p>' .
'<p>' .
__( '<a href="https://wordpress.org/documentation/article/settings-privacy-screen/">Documentation on Privacy Settings</a>'
) . '</p>'
);
if ( !
empty( $action ) ) { check_admin_referer( $action );
if ( 'set-privacy-page' ===
$action ) { $privacy_policy_page_id =
isset( $_POST['page_for_privacy_policy'
] ) ?
(int) $_POST['page_for_privacy_policy'
] : 0;
update_option( 'wp_page_for_privacy_policy',
$privacy_policy_page_id );
$privacy_page_updated_message =
__( 'Privacy Policy page updated successfully.'
);
if ( $privacy_policy_page_id ) { /*
* Don't always link to the menu customizer:
*
* - Unpublished pages can't be selected by default.
* - `WP_Customize_Nav_Menus::__construct()` checks the user's capabilities.
* - Themes might not "officially" support menus.
*/