WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/02/2021 07:43:37 PM (4 months ago)
Author:
antpb
Message:

Privacy: Allow Admin to Skip e-mail confirmation for Export.

This adds a form option to skip the admin email alert when exporting personal data.

Props xkon, azaozz, TZ-Media, iandunn, desrosj, iprg, allendav, wesselvandenberg, karmatosed, birgire, davidbaumwald, estelaris, paaljoachim, hellofromTonya.
Fixes #43890.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/export-personal-data.php

    r50147 r50159  
    110110    <form action="<?php echo esc_url( admin_url( 'export-personal-data.php' ) ); ?>" method="post" class="wp-privacy-request-form">
    111111        <h2><?php esc_html_e( 'Add Data Export Request' ); ?></h2>
    112         <p><?php esc_html_e( 'An email will be sent to the user at this email address asking them to verify the request.' ); ?></p>
    113 
    114112        <div class="wp-privacy-request-form-field">
    115             <label for="username_or_email_for_privacy_request"><?php esc_html_e( 'Username or email address' ); ?></label>
    116             <input type="text" required class="regular-text ltr" id="username_or_email_for_privacy_request" name="username_or_email_for_privacy_request" />
    117             <?php submit_button( __( 'Send Request' ), 'secondary', 'submit', false ); ?>
     113        <table class="form-table">
     114                <tr>
     115                    <th scope="row">
     116                        <label for="username_or_email_for_privacy_request"><?php esc_html_e( 'Username or email address' ); ?></label>
     117                    </th>
     118                    <td>
     119                        <input type="text" required class="regular-text ltr" id="username_or_email_for_privacy_request" name="username_or_email_for_privacy_request" />
     120                    </td>
     121                </tr>
     122                <tr>
     123                    <th scope="row">
     124                        <?php _e( 'Confirmation email' ); ?>
     125                    </th>
     126                    <td>
     127                        <label for="send_confirmation_email">
     128                            <input type="checkbox" name="send_confirmation_email" id="send_confirmation_email" value="1" checked="checked" />
     129                            <?php _e( 'Send personal data export confirmation email.' ); ?>
     130                        </label>
     131                    </td>
     132                </tr>
     133            </table>
     134            <p class="submit">
     135                <?php submit_button( __( 'Send Request' ), 'secondary', 'submit', false ); ?>
     136            </p>
    118137        </div>
    119138        <?php wp_nonce_field( 'personal-data-request' ); ?>
Note: See TracChangeset for help on using the changeset viewer.