WordPress.org

Make WordPress Core

Changeset 43151


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

Privacy: use sprintf() in translations.

Props birgire.
Merges [43150] to the 4.9 branch.
See #43473.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

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

    r43149 r43151  
    16011601            '<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>' .
    16021602            '<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>' .
    1603             '<p>' . __( 'Our website address is: $1%s.' ) . '</p>' .
     1603            /* translators: %s Site URL */
     1604            '<p>' . sprintf( __( 'Our website address is: %s.' ), get_bloginfo( 'url', 'display' ) ) . '</p>' .
    16041605
    16051606            '<h2>' . __( 'What personal data we collect and why we collect it' ) . '</h2>' .
     
    16741675            // End of the suggested policy text.
    16751676
    1676         $content = str_replace( '$1%s', get_bloginfo( 'url', 'display' ), $content );
    1677 
    16781677        /**
    16791678         * Filters the default content suggested for inclusion in a privacy policy.
     
    16811680         * @since 4.9.6
    16821681         *
    1683          * @param $content string The defauld policy content.
     1682         * @param $content string The default policy content.
    16841683         */
    16851684        return apply_filters( 'wp_get_default_privacy_policy_content', $content );
Note: See TracChangeset for help on using the changeset viewer.