Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#44181 closed enhancement (fixed)

The input field id username_or_email_to_export should be something else on remove_personal_data page

Reported by: allendav's profile allendav Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 4.9.8 Priority: normal
Severity: normal Version: 4.9.6
Component: Privacy Keywords: has-patch commit
Focuses: administration Cc:

Description

Minor.

On wp-admin/tools.php?page=remove_personal_data

And as handled in wp-admin/includes/user.php in _wp_personal_data_handle_actions

Note that presently, the logic (regardless of erase or export) is using $_POST username_or_email_to_export

It should either be renamed on the remove_personal_data page, or a more generic POST variable name chosen for both remove_personal_data and export_personal_data (e.g. username_or_email_for_privacy_request)

Attachments (1)

44181.diff (4.2 KB) - added by ianbelanger 6 years ago.
Changed all instances of "username_or_email_to_export" to "username_or_email_for_privacy_request" in /wp-admin/includes/user.php

Download all attachments as: .zip

Change History (11)

@ianbelanger
6 years ago

Changed all instances of "username_or_email_to_export" to "username_or_email_for_privacy_request" in /wp-admin/includes/user.php

#1 @desrosj
6 years ago

  • Focuses administration added
  • Keywords has-patch added; needs-patch removed
  • Version changed from trunk to 4.9.6

This ticket was mentioned in Slack in #core by jon_bossenger. View the logs.


6 years ago

#3 @desrosj
6 years ago

  • Keywords gdpr removed

Removing the GDPR keyword. This has been replaced by the new Privacy component and privacy focuses in Trac.

#4 @desrosj
6 years ago

This change makes sense to me. I tested and everything is working as it should. I wonder if any plugins or themes are using this $_POST variable, though. While it's not wrong, it would be a much better approach to add action hooks where additional actions are needed. Not sure that is a blocker, but it's worth noting the very slim potential for a backwards compatibility issue.

This ticket was mentioned in Slack in #core by pbiron. View the logs.


6 years ago

This ticket was mentioned in Slack in #core by pbiron. View the logs.


6 years ago

#7 @pento
6 years ago

  • Keywords commit added

This is fine to commit and backport, I don't think we need to be concerned about the potential back compat issue.

#8 @SergeyBiryukov
6 years ago

Searched the plugin repo for username_or_email_to_export, haven't found anything.

#9 @SergeyBiryukov
6 years ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 43478:

Privacy: Rename username_or_email_to_export POST variable on Erase Personal Data screen to a more generic username_or_email_for_privacy_request.

Props ianbelanger, allendav.
Fixes #44181.

#10 @SergeyBiryukov
6 years ago

In 43479:

Privacy: Rename username_or_email_to_export POST variable on Erase Personal Data screen to a more generic username_or_email_for_privacy_request.

Props ianbelanger, allendav.
Merges [43478] to the 4.9 branch.
Fixes #44181.

Note: See TracTickets for help on using tickets.