WordPress.org

Make WordPress Core

Changeset 43242


Ignore:
Timestamp:
05/11/2018 03:07:00 PM (16 months ago)
Author:
azaozz
Message:

Privacy: exclude the wrapper from the default policy content.

Fixes #44048.

File:
1 edited

Legend:

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

    r43223 r43242  
    16921692    public static function get_default_content( $descr = false ) {
    16931693        $suggested_text = $descr ? '<strong class="privacy-policy-tutorial">' . __( 'Suggested text:' ) . ' </strong>' : '';
     1694        $content = '';
    16941695
    16951696        // Start of the suggested privacy policy text.
    1696         $content =
    1697             '<div class="wp-suggested-text">' .
     1697        $descr && $content .=
     1698            '<div class="wp-suggested-text">';
     1699        $content .=
    16981700            '<h2>' . __( 'Who we are' ) . '</h2>';
    16991701        $descr && $content .=
     
    18081810            '<h3>' . __( 'Industry regulatory disclosure requirements' ) . '</h3>';
    18091811        $descr && $content .=
    1810             '<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>';
    1811         $content .=
     1812            '<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>' .
    18121813            '</div>';
    18131814        // End of the suggested privacy policy text.
Note: See TracChangeset for help on using the changeset viewer.