Ticket #44099: 44099.2.diff
| File 44099.2.diff, 2.9 KB (added by , 8 years ago) |
|---|
-
src/wp-includes/user.php
2973 2973 return; 2974 2974 } 2975 2975 2976 $blogname = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ); 2977 $action_description = wp_user_request_action_description( $request_data->action_name ); 2978 2976 2979 $subject = sprintf( 2977 /* translators: %s Site name. */ 2978 __( '[%s] Action Confirmed' ), 2979 wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ) 2980 /* translators: 1: Site name. 2: Name of the action. */ 2981 __( '[%1$s] Action Confirmed: %2$s' ), 2982 $blogname, 2983 $action_description 2980 2984 ); 2981 2985 2982 2986 $manage_url = add_query_arg( 'page', $request_data->action_name, admin_url( 'tools.php' ) ); … … 3000 3004 $email_data = array( 3001 3005 'request' => $request_data, 3002 3006 'user_email' => $request_data->email, 3003 'description' => wp_user_request_action_description( $request_data->action_name ),3007 'description' => $action_description, 3004 3008 'manage_url' => $manage_url, 3005 3009 'sitename' => get_option( 'blogname' ), 3006 3010 'siteurl' => home_url(), … … 3049 3053 * @type string $manage_url The link to click manage privacy requests of this type. 3050 3054 * @type string $sitename The site name sending the mail. 3051 3055 * @type string $siteurl The site URL sending the mail. 3056 * @type string $admin_email The admin email receiving the email. 3052 3057 * } 3053 3058 */ 3054 3059 $content = apply_filters( 'user_confirmed_action_email_content', $email_text, $email_data ); 3055 3060 3061 /** 3062 * Filters the subject of the email sent to the site admin when an action is confirmed. 3063 * 3064 * @since 4.9.7 3065 * 3066 * @param string $subject The email subject. 3067 * @param string $blogname The name of the site. 3068 * @param array $email_data { 3069 * Data relating to the account action email. 3070 * 3071 * @type WP_User_Request $request User request object. 3072 * @type string $user_email The email address confirming a request 3073 * @type string $description Description of the action being performed so the user knows what the email is for. 3074 * @type string $manage_url The link to click manage privacy requests of this type. 3075 * @type string $sitename The site name sending the mail. 3076 * @type string $siteurl The site URL sending the mail. 3077 * @type string $admin_email The admin email receiving the email. 3078 * } 3079 */ 3080 $subject = apply_filters( 'user_request_confirmed_email_subject', $subject, $blogname, $email_data ); 3081 3056 3082 $content = str_replace( '###SITENAME###', wp_specialchars_decode( $email_data['sitename'], ENT_QUOTES ), $content ); 3057 3083 $content = str_replace( '###USER_EMAIL###', $email_data['user_email'], $content ); 3058 3084 $content = str_replace( '###DESCRIPTION###', $email_data['description'], $content );