Privacy: Add a missing <form>
action on the Export/Erasure screens.
This lack of action could cause an expired nonce to end up in the URL. Props garrett-eclipse, saimonh, xkon. Fixes #44047. git-svn-id: https://develop.svn.wordpress.org/trunk@45149 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6dddce67fc
commit
9802c065a4
@ -830,7 +830,7 @@ function _wp_personal_data_export_page() {
|
||||
|
||||
<?php settings_errors(); ?>
|
||||
|
||||
<form method="post" class="wp-privacy-request-form">
|
||||
<form action="<?php echo admin_url( 'tools.php?page=export_personal_data' ); ?>" method="post" class="wp-privacy-request-form">
|
||||
<h2><?php esc_html_e( 'Add Data Export Request' ); ?></h2>
|
||||
<p><?php esc_html_e( 'An email will be sent to the user at this email address asking them to verify the request.' ); ?></p>
|
||||
|
||||
@ -914,7 +914,7 @@ function _wp_personal_data_removal_page() {
|
||||
|
||||
<?php settings_errors(); ?>
|
||||
|
||||
<form method="post" class="wp-privacy-request-form">
|
||||
<form action="<?php echo admin_url( 'tools.php?page=remove_personal_data' ); ?>" method="post" class="wp-privacy-request-form">
|
||||
<h2><?php esc_html_e( 'Add Data Erasure Request' ); ?></h2>
|
||||
<p><?php esc_html_e( 'An email will be sent to the user at this email address asking them to verify the request.' ); ?></p>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user