Make WordPress Core

Changeset 43374 for trunk


Ignore:
Timestamp:
06/18/2018 04:36:18 PM (8 years ago)
Author:
azaozz
Message:

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.

File:
1 edited

Legend:

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

    r43343 r43374  
    156156                        <?php
    157157
    158                         /* translators: 1: URL to edit page, 2: URL to view page */
    159                         printf( __( '<a href="%1$s">Edit</a> or <a href="%2$s">view</a> your privacy policy page content.' ), $edit_href, $view_href );
     158                        if ( 'publish' === get_post_status( $privacy_policy_page_id ) ) {
     159                                /* translators: 1: URL to edit page, 2: URL to view page */
     160                                printf( __( '<a href="%1$s">Edit</a> or <a href="%2$s">view</a> your privacy policy page content.' ), $edit_href, $view_href );
     161                        } else {
     162                                /* translators: 1: URL to edit page, 2: URL to preview page */
     163                                printf( __( '<a href="%1$s">Edit</a> or <a href="%2$s">preview</a> your privacy policy page content.' ), $edit_href, $view_href );
     164                        }
    160165
    161166                        ?>
Note: See TracChangeset for help on using the changeset viewer.