WordPress.org

Make WordPress Core

Changeset 43150


Ignore:
Timestamp:
05/03/2018 06:24:55 PM (3 years ago)
Author:
azaozz
Message:

Privacy: use sprintf() in translations.

Props birgire.
See #43473.

File:
1 edited

Legend:

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

    r43148 r43150  
    16501650            '<p class="wp-policy-help">' . __( 'In this section you should note your site URL, as well as the name of the company, organization, or individual behind it, and some accurate contact information.' ) . '</p>' .
    16511651            '<p class="wp-policy-help">' . __( 'The amount of information you may be required to show will vary depending on your local or national business regulations. You may, for example, be required to display a physical address, a registered address, or your company registration number.' ) . '</p>' .
    1652             '<p>' . __( 'Our website address is: $1%s.' ) . '</p>' .
     1652            /* translators: %s Site URL */
     1653            '<p>' . sprintf( __( 'Our website address is: %s.' ), get_bloginfo( 'url', 'display' ) ) . '</p>' .
    16531654
    16541655            '<h2>' . __( 'What personal data we collect and why we collect it' ) . '</h2>' .
     
    17231724            // End of the suggested policy text.
    17241725
    1725         $content = str_replace( '$1%s', get_bloginfo( 'url', 'display' ), $content );
    1726 
    17271726        /**
    17281727         * Filters the default content suggested for inclusion in a privacy policy.
     
    17301729         * @since 4.9.6
    17311730         *
    1732          * @param $content string The defauld policy content.
     1731         * @param $content string The default policy content.
    17331732         */
    17341733        return apply_filters( 'wp_get_default_privacy_policy_content', $content );
Note: See TracChangeset for help on using the changeset viewer.