From b2830c15e66d340141e97523d4b85490d752c5c3 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Mon, 18 Jun 2018 16:36:18 +0000 Subject: [PATCH] Privacy: on the Privacy Settings screen change `view` to `preview` when a draft page is selected for the privacy policy. Props garrett-eclipse, desrosj. Fixes #44131. git-svn-id: https://develop.svn.wordpress.org/trunk@43374 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/privacy.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/privacy.php b/src/wp-admin/privacy.php index 9c360dd18f..b9c5d8c181 100644 --- a/src/wp-admin/privacy.php +++ b/src/wp-admin/privacy.php @@ -155,8 +155,13 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );

Edit or view your privacy policy page content.' ), $edit_href, $view_href ); + if ( 'publish' === get_post_status( $privacy_policy_page_id ) ) { + /* translators: 1: URL to edit page, 2: URL to view page */ + printf( __( 'Edit or view your privacy policy page content.' ), $edit_href, $view_href ); + } else { + /* translators: 1: URL to edit page, 2: URL to preview page */ + printf( __( 'Edit or preview your privacy policy page content.' ), $edit_href, $view_href ); + } ?>