Make WordPress Core

Ticket #44047: 44047.getpage.diff

File 44047.getpage.diff, 1.1 KB (added by garrett-eclipse, 6 years ago)

Dynamically sets the form action to ?page=$_GET['page'] to address the issue

  • src/wp-admin/includes/user.php

     
    830830
    831831                <?php settings_errors(); ?>
    832832
    833                 <form method="post" class="wp-privacy-request-form">
     833                <form <?php echo ( isset( $_GET['page'] ) ? 'action="?page=' . $_GET['page'] . '"' : '' ); ?> method="post" class="wp-privacy-request-form">
    834834                        <h2><?php esc_html_e( 'Add Data Export Request' ); ?></h2>
    835835                        <p><?php esc_html_e( 'An email will be sent to the user at this email address asking them to verify the request.' ); ?></p>
    836836
     
    914914
    915915                <?php settings_errors(); ?>
    916916
    917                 <form method="post" class="wp-privacy-request-form">
     917                <form <?php echo ( isset( $_GET['page'] ) ? 'action="?page=' . $_GET['page'] . '"' : '' ); ?> method="post" class="wp-privacy-request-form">
     918
    918919                        <h2><?php esc_html_e( 'Add Data Erasure Request' ); ?></h2>
    919920                        <p><?php esc_html_e( 'An email will be sent to the user at this email address asking them to verify the request.' ); ?></p>
    920921