Make WordPress Core

Ticket #44265: 44265.diff

File 44265.diff, 2.0 KB (added by desrosj, 7 years ago)
  • src/wp-includes/user.php

     
    30883088                return;
    30893089        }
    30903090
    3091         $subject = sprintf(
     3091        $blogname = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
     3092        $subject  = sprintf(
    30923093                /* translators: %s Site name. */
    30933094                __( '[%s] Erasure Request Fulfilled' ),
    3094                 wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES )
     3095                $blogname
    30953096        );
    30963097
    30973098        /**
     
    31713172         */
    31723173        $content = apply_filters( 'user_confirmed_action_email_content', $email_text, $email_data );
    31733174
     3175        /**
     3176         * Filters the subject of the email sent when an erasure request is completed.
     3177         *
     3178         * @since 4.9.7
     3179         *
     3180         * @param string $subject    The email subject.
     3181         * @param string $blogname   The name of the site.
     3182         * @param array  $email_data {
     3183         *     Data relating to the account action email.
     3184         *
     3185         *     @type WP_User_Request $request            User request object.
     3186         *     @type string          $message_recipient  The address that the email will be sent to. Defaults
     3187         *                                               to the value of `$request->email`, but can be changed
     3188         *                                               by the `user_erasure_fulfillment_email_to` filter.
     3189         *     @type string          $privacy_policy_url Privacy policy URL.
     3190         *     @type string          $sitename           The site name sending the mail.
     3191         *     @type string          $siteurl            The site URL sending the mail.
     3192         * }
     3193         */
     3194        $subject = apply_filters( 'user_request_action_email_subject', $subject, $blogname, $email_data );
     3195
    31743196        $content = str_replace( '###SITENAME###', wp_specialchars_decode( $email_data['sitename'], ENT_QUOTES ), $content );
    31753197        $content = str_replace( '###PRIVACY_POLICY_URL###', $email_data['privacy_policy_url'], $content );
    31763198        $content = str_replace( '###SITEURL###', esc_url_raw( $email_data['siteurl'] ), $content );