Make WordPress Core

Ticket #44099: 44099.2.diff

File 44099.2.diff, 2.9 KB (added by desrosj, 8 years ago)
  • src/wp-includes/user.php

     
    29732973                return;
    29742974        }
    29752975
     2976        $blogname           = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
     2977        $action_description = wp_user_request_action_description( $request_data->action_name );
     2978
    29762979        $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
    29802984        );
    29812985
    29822986        $manage_url = add_query_arg( 'page', $request_data->action_name, admin_url( 'tools.php' ) );
     
    30003004        $email_data = array(
    30013005                'request'     => $request_data,
    30023006                'user_email'  => $request_data->email,
    3003                 'description' => wp_user_request_action_description( $request_data->action_name ),
     3007                'description' => $action_description,
    30043008                'manage_url'  => $manage_url,
    30053009                'sitename'    => get_option( 'blogname' ),
    30063010                'siteurl'     => home_url(),
     
    30493053         *     @type string          $manage_url  The link to click manage privacy requests of this type.
    30503054         *     @type string          $sitename    The site name sending the mail.
    30513055         *     @type string          $siteurl     The site URL sending the mail.
     3056         *     @type string          $admin_email The admin email receiving the email.
    30523057         * }
    30533058         */
    30543059        $content = apply_filters( 'user_confirmed_action_email_content', $email_text, $email_data );
    30553060
     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
    30563082        $content = str_replace( '###SITENAME###', wp_specialchars_decode( $email_data['sitename'], ENT_QUOTES ), $content );
    30573083        $content = str_replace( '###USER_EMAIL###', $email_data['user_email'], $content );
    30583084        $content = str_replace( '###DESCRIPTION###', $email_data['description'], $content );