Ticket #44265: 44265.diff
File 44265.diff, 2.0 KB (added by , 7 years ago) |
---|
-
src/wp-includes/user.php
3088 3088 return; 3089 3089 } 3090 3090 3091 $subject = sprintf( 3091 $blogname = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ); 3092 $subject = sprintf( 3092 3093 /* translators: %s Site name. */ 3093 3094 __( '[%s] Erasure Request Fulfilled' ), 3094 wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES )3095 $blogname 3095 3096 ); 3096 3097 3097 3098 /** … … 3171 3172 */ 3172 3173 $content = apply_filters( 'user_confirmed_action_email_content', $email_text, $email_data ); 3173 3174 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 3174 3196 $content = str_replace( '###SITENAME###', wp_specialchars_decode( $email_data['sitename'], ENT_QUOTES ), $content ); 3175 3197 $content = str_replace( '###PRIVACY_POLICY_URL###', $email_data['privacy_policy_url'], $content ); 3176 3198 $content = str_replace( '###SITEURL###', esc_url_raw( $email_data['siteurl'] ), $content );