Make WordPress Core

Ticket #44314: 44314.2.diff

File 44314.2.diff, 2.6 KB (added by birgire, 6 years ago)
  • src/wp-includes/user.php

    diff --git src/wp-includes/user.php src/wp-includes/user.php
    index d309e2f..c11fb34 100644
    All at ###SITENAME### 
    31503150         *
    31513151         * The following strings have a special meaning and will get replaced dynamically:
    31523152         *
     3153         * Use the {@see 'user_erasure_fulfillment_email_content'} filter instead.
     3154         *
    31533155         * ###SITENAME###           The name of the site.
    31543156         * ###PRIVACY_POLICY_URL### Privacy policy page URL.
    31553157         * ###SITEURL###            The URL to the site.
    31563158         *
    31573159         * @since 4.9.6
     3160         * @deprecated 4.9.7 Use {@see 'user_erasure_fulfillment_email_content'} filter instead.
    31583161         *
    31593162         * @param string $email_text Text in the email.
    31603163         * @param array  $email_data {
    All at ###SITENAME### 
    31693172         *     @type string          $siteurl            The site URL sending the mail.
    31703173         * }
    31713174         */
    3172         $content = apply_filters( 'user_confirmed_action_email_content', $email_text, $email_data );
     3175        $content = apply_filters_deprecated( 'user_confirmed_action_email_content', array( $email_text, $email_data ), '4.9.7', 'user_erasure_fulfillment_email_content' );
     3176
     3177        /**
     3178         * Filters the body of the data erasure fulfillment notification.
     3179         *
     3180         * The email is sent to a user when a their data erasure request is fulfilled
     3181         * by an administrator.
     3182         *
     3183         * The following strings have a special meaning and will get replaced dynamically:
     3184         *
     3185         * ###SITENAME###           The name of the site.
     3186         * ###PRIVACY_POLICY_URL### Privacy policy page URL.
     3187         * ###SITEURL###            The URL to the site.
     3188         *
     3189         * @since 4.9.7
     3190         *
     3191         * @param string $email_text Text in the email.
     3192         * @param array  $email_data {
     3193         *     Data relating to the account action email.
     3194         *
     3195         *     @type WP_User_Request $request            User request object.
     3196         *     @type string          $message_recipient  The address that the email will be sent to. Defaults
     3197         *                                               to the value of `$request->email`, but can be changed
     3198         *                                               by the `user_erasure_fulfillment_email_to` filter.
     3199         *     @type string          $privacy_policy_url Privacy policy URL.
     3200         *     @type string          $sitename           The site name sending the mail.
     3201         *     @type string          $siteurl            The site URL sending the mail.
     3202         * }
     3203         */
     3204        $content = apply_filters( 'user_erasure_fulfillment_email_content', $email_text, $email_data );
    31733205
    31743206        $content = str_replace( '###SITENAME###', wp_specialchars_decode( $email_data['sitename'], ENT_QUOTES ), $content );
    31753207        $content = str_replace( '###PRIVACY_POLICY_URL###', $email_data['privacy_policy_url'], $content );