Make WordPress Core

Opened 3 years ago

Last modified 20 months ago

#54442 new defect (bug)

Provide feedback if initiating an email for a personal data request action has failed

Reported by: ocean90's profile ocean90 Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 4.9.6
Component: Privacy Keywords: good-first-bug has-patch
Focuses: Cc:

Description

When creating a request for an export or a delete personal data request and the confirmation email is enabled, the user doesn't get any feedback if wp_send_user_request() was successful. The function returns a WP_Error object on failure which should be checked and displayed to the user.

Source: https://core.trac.wordpress.org/browser/tags/5.8.2/src/wp-admin/includes/privacy-tools.php?marks=168-171#L168

Attachments (1)

54442.diff (949 bytes) - added by hasanuzzamanshamim 3 years ago.
Error check patch created

Download all attachments as: .zip

Change History (3)

@hasanuzzamanshamim
3 years ago

Error check patch created

#1 @hasanuzzamanshamim
3 years ago

  • Keywords has-patch added

This ticket was mentioned in PR #4083 on WordPress/wordpress-develop by @atiqsu.


20 months ago
#2

  • Checking if request action is WP_Error, if so sending settings error to be displayed to the use
  • Updated gitignore for phpStorm IDE

The code is actually from @hasanuzzamanshamim with little update.

Trac ticket: https://core.trac.wordpress.org/ticket/54442

Note: See TracTickets for help on using tickets.