Make WordPress Core

Changeset 43375 for trunk


Ignore:
Timestamp:
06/19/2018 08:17:44 AM (8 years ago)
Author:
azaozz
Message:

Privacy: add user request type to the admin notification email subject.

Props birgire, desrosj.
Fixes #44099.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/user.php

    r43373 r43375  
    29742974        }
    29752975
    2976         $manage_url = add_query_arg( 'page', $request_data->action_name, admin_url( 'tools.php' ) );
     2976        $manage_url         = add_query_arg( 'page', $request_data->action_name, admin_url( 'tools.php' ) );
     2977        $action_description = wp_user_request_action_description( $request_data->action_name );
    29772978
    29782979        /**
     
    29952996                'request'     => $request_data,
    29962997                'user_email'  => $request_data->email,
    2997                 'description' => wp_user_request_action_description( $request_data->action_name ),
     2998                'description' => $action_description,
    29982999                'manage_url'  => $manage_url,
    29993000                'sitename'    => get_option( 'blogname' ),
     
    30583059
    30593060        $subject = sprintf(
    3060                 /* translators: %s Site name. */
    3061                 __( '[%s] Action Confirmed' ),
    3062                 $blogname
     3061                /* translators: 1: Site name. 2: Name of the confirmed action. */
     3062                __( '[%1$s] Action Confirmed: %2$s' ),
     3063                $blogname,
     3064                $action_description
    30633065        );
    30643066
Note: See TracChangeset for help on using the changeset viewer.