Changeset 50159 for trunk/src/wp-admin/includes/privacy-tools.php
- Timestamp:
- 02/02/2021 07:43:37 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/privacy-tools.php
r50055 r50159 112 112 $username_or_email_address = sanitize_text_field( wp_unslash( $_POST['username_or_email_for_privacy_request'] ) ); 113 113 $email_address = ''; 114 $send_confirmation_email = true; 115 116 if ( ! isset( $_POST['send_confirmation_email'] ) ) { 117 $send_confirmation_email = false; 118 } 114 119 115 120 if ( ! in_array( $action_type, _wp_privacy_action_request_types(), true ) ) { … … 142 147 } 143 148 144 $request_id = wp_create_user_request( $email_address, $action_type );149 $request_id = wp_create_user_request( $email_address, $action_type, array(), $send_confirmation_email ); 145 150 146 151 if ( is_wp_error( $request_id ) ) { … … 162 167 } 163 168 164 wp_send_user_request( $request_id ); 169 if ( $send_confirmation_email ) { 170 wp_send_user_request( $request_id ); 171 } 165 172 166 173 add_settings_error(
Note: See TracChangeset
for help on using the changeset viewer.