WordPress.org

Make WordPress Core

Changeset 43255


Ignore:
Timestamp:
05/14/2018 02:06:28 PM (17 months ago)
Author:
SergeyBiryukov
Message:

Privacy: exclude the wrapper from the default policy content.

Props azaozz.
Merges [43242] to the 4.9 branch.
Fixes #44048.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/src/wp-admin/includes/misc.php

    r43254 r43255  
    16431643    public static function get_default_content( $descr = false ) {
    16441644        $suggested_text = $descr ? '<strong class="privacy-policy-tutorial">' . __( 'Suggested text:' ) . ' </strong>' : '';
     1645        $content = '';
    16451646
    16461647        // Start of the suggested privacy policy text.
    1647         $content =
    1648             '<div class="wp-suggested-text">' .
     1648        $descr && $content .=
     1649            '<div class="wp-suggested-text">';
     1650        $content .=
    16491651            '<h2>' . __( 'Who we are' ) . '</h2>';
    16501652        $descr && $content .=
     
    17591761            '<h3>' . __( 'Industry regulatory disclosure requirements' ) . '</h3>';
    17601762        $descr && $content .=
    1761             '<p class="privacy-policy-tutorial">' . __( 'If you are a member of a regulated industry, or if you are subject to additional privacy laws, you may be required to disclose that information here.' ) . '</p>';
    1762         $content .=
     1763            '<p class="privacy-policy-tutorial">' . __( 'If you are a member of a regulated industry, or if you are subject to additional privacy laws, you may be required to disclose that information here.' ) . '</p>' .
    17631764            '</div>';
    17641765        // End of the suggested privacy policy text.
Note: See TracChangeset for help on using the changeset viewer.