#44040 closed defect (bug) (fixed)
Potential PHP notice in `wp_ajax_wp_privacy_erase_personal_data()`
Reported by: | desrosj | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 4.9.6 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Privacy | Keywords: | gdpr has-patch commit |
Focuses: | Cc: |
Description
The $eraser_key
variable is passed to the wp_privacy_personal_data_erasure_page
filter, but it is only set if there is one or more data erasers defined.
The variable should be initialized earlier to avoid a PHP notice.
Attachments (1)
Change History (8)
This ticket was mentioned in Slack in #gdpr-compliance by desrosj. View the logs.
7 years ago
#3
@
7 years ago
Updated patch - accidentally included default-filters test hack.
Also fixed same flaw which also exists in the exporters logic.
Note: See
TracTickets for help on using
tickets.
To test: