Skip to content

Commit

Permalink
Privacy: on the Privacy Settings screen change view to preview wh…
Browse files Browse the repository at this point in the history
…en a draft page is selected for the privacy policy.

Props garrett-eclipse, desrosj.
Fixes #44131.
Built from https://develop.svn.wordpress.org/trunk@43374


git-svn-id: http://core.svn.wordpress.org/trunk@43202 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
azaozz committed Jun 28, 2018
1 parent ac269e5 commit 2afe714
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions wp-admin/privacy.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,13 @@
<p class="tools-privacy-edit"><strong>
<?php

/* translators: 1: URL to edit page, 2: URL to view page */
printf( __( '<a href="%1$s">Edit</a> or <a href="%2$s">view</a> 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( __( '<a href="%1$s">Edit</a> or <a href="%2$s">view</a> your privacy policy page content.' ), $edit_href, $view_href );
} else {
/* translators: 1: URL to edit page, 2: URL to preview page */
printf( __( '<a href="%1$s">Edit</a> or <a href="%2$s">preview</a> your privacy policy page content.' ), $edit_href, $view_href );
}

?>
</strong></p>
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.0-alpha-43373';
$wp_version = '5.0-alpha-43374';

/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
Expand Down

0 comments on commit 2afe714

Please sign in to comment.