Changeset 44606
- Timestamp:
- 01/15/2019 10:34:39 PM (6 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/user.php
r43665 r44606 619 619 * 620 620 * @param int $request_id Request ID. 621 * @return int|WP_Error $re questRequest ID on success or WP_Error.621 * @return int|WP_Error $result Request ID on success or WP_Error. 622 622 */ 623 623 function _wp_privacy_completed_request( $request_id ) { 624 $request_id 625 $request _data= wp_get_user_request_data( $request_id );626 627 if ( ! $request _data) {624 $request_id = absint( $request_id ); 625 $request = wp_get_user_request_data( $request_id ); 626 627 if ( ! $request ) { 628 628 return new WP_Error( 'privacy_request_error', __( 'Invalid request.' ) ); 629 629 } … … 631 631 update_post_meta( $request_id, '_wp_user_request_completed_timestamp', time() ); 632 632 633 $re quest = wp_update_post(633 $result = wp_update_post( 634 634 array( 635 635 'ID' => $request_id, … … 638 638 ); 639 639 640 return $re quest;640 return $result; 641 641 } 642 642 -
trunk/src/wp-includes/user.php
r44605 r44606 2963 2963 */ 2964 2964 function _wp_privacy_account_request_confirmed( $request_id ) { 2965 $request _data= wp_get_user_request_data( $request_id );2966 2967 if ( ! $request _data) {2965 $request = wp_get_user_request_data( $request_id ); 2966 2967 if ( ! $request ) { 2968 2968 return; 2969 2969 } 2970 2970 2971 if ( ! in_array( $request _data->status, array( 'request-pending', 'request-failed' ), true ) ) {2971 if ( ! in_array( $request->status, array( 'request-pending', 'request-failed' ), true ) ) { 2972 2972 return; 2973 2973 } … … 2993 2993 */ 2994 2994 function _wp_privacy_send_request_confirmation_notification( $request_id ) { 2995 $request _data= wp_get_user_request_data( $request_id );2996 2997 if ( ! is_a( $request _data, 'WP_User_Request' ) || 'request-confirmed' !== $request_data->status ) {2995 $request = wp_get_user_request_data( $request_id ); 2996 2997 if ( ! is_a( $request, 'WP_User_Request' ) || 'request-confirmed' !== $request->status ) { 2998 2998 return; 2999 2999 } … … 3005 3005 } 3006 3006 3007 $manage_url = add_query_arg( 'page', $request _data->action_name, admin_url( 'tools.php' ) );3008 $action_description = wp_user_request_action_description( $request _data->action_name );3007 $manage_url = add_query_arg( 'page', $request->action_name, admin_url( 'tools.php' ) ); 3008 $action_description = wp_user_request_action_description( $request->action_name ); 3009 3009 3010 3010 /** … … 3019 3019 * @since 4.9.6 3020 3020 * 3021 * @param string $admin_email 3022 * @param WP_User_Request $request _dataThe request that is initiating the notification.3023 */ 3024 $admin_email = apply_filters( 'user_request_confirmed_email_to', get_site_option( 'admin_email' ), $request _data);3021 * @param string $admin_email The email address of the notification recipient. 3022 * @param WP_User_Request $request The request that is initiating the notification. 3023 */ 3024 $admin_email = apply_filters( 'user_request_confirmed_email_to', get_site_option( 'admin_email' ), $request ); 3025 3025 3026 3026 $email_data = array( 3027 'request' => $request _data,3028 'user_email' => $request _data->email,3027 'request' => $request, 3028 'user_email' => $request->email, 3029 3029 'description' => $action_description, 3030 3030 'manage_url' => $manage_url, … … 3132 3132 */ 3133 3133 function _wp_privacy_send_erasure_fulfillment_notification( $request_id ) { 3134 $request _data= wp_get_user_request_data( $request_id );3135 3136 if ( ! is_a( $request _data, 'WP_User_Request' ) || 'request-completed' !== $request_data->status ) {3134 $request = wp_get_user_request_data( $request_id ); 3135 3136 if ( ! is_a( $request, 'WP_User_Request' ) || 'request-completed' !== $request->status ) { 3137 3137 return; 3138 3138 } … … 3149 3149 * @since 4.9.6 3150 3150 * 3151 * @param string $user_email 3152 * @param WP_User_Request $request _dataThe request that is initiating the notification.3153 */ 3154 $user_email = apply_filters( 'user_erasure_fulfillment_email_to', $request _data->email, $request_data);3151 * @param string $user_email The email address of the notification recipient. 3152 * @param WP_User_Request $request The request that is initiating the notification. 3153 */ 3154 $user_email = apply_filters( 'user_erasure_fulfillment_email_to', $request->email, $request ); 3155 3155 3156 3156 $email_data = array( 3157 'request' => $request _data,3157 'request' => $request, 3158 3158 'message_recipient' => $user_email, 3159 3159 'privacy_policy_url' => get_privacy_policy_url(),
Note: See TracChangeset
for help on using the changeset viewer.