Changeset 43479
- Timestamp:
- 07/17/2018 02:17:42 PM (6 years ago)
- Location:
- branches/4.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
-
branches/4.9/src/wp-admin/includes/user.php
r43305 r43479 631 631 check_admin_referer( 'personal-data-request' ); 632 632 633 if ( ! isset( $_POST['type_of_action'], $_POST['username_or_email_ to_export'] ) ) { // WPCS: input var ok.633 if ( ! isset( $_POST['type_of_action'], $_POST['username_or_email_for_privacy_request'] ) ) { 634 634 add_settings_error( 635 635 'action_type', … … 639 639 ); 640 640 } 641 $action_type = sanitize_text_field( wp_unslash( $_POST['type_of_action'] ) ); // WPCS: input var ok.642 $username_or_email_address = sanitize_text_field( wp_unslash( $_POST['username_or_email_ to_export'] ) ); // WPCS: input var ok.641 $action_type = sanitize_text_field( wp_unslash( $_POST['type_of_action'] ) ); 642 $username_or_email_address = sanitize_text_field( wp_unslash( $_POST['username_or_email_for_privacy_request'] ) ); 643 643 $email_address = ''; 644 644 … … 656 656 if ( ! $user instanceof WP_User ) { 657 657 add_settings_error( 658 'username_or_email_ to_export',659 'username_or_email_ to_export',658 'username_or_email_for_privacy_request', 659 'username_or_email_for_privacy_request', 660 660 __( 'Unable to add this request. A valid email address or username must be supplied.' ), 661 661 'error' … … 676 676 if ( is_wp_error( $request_id ) ) { 677 677 add_settings_error( 678 'username_or_email_ to_export',679 'username_or_email_ to_export',678 'username_or_email_for_privacy_request', 679 'username_or_email_for_privacy_request', 680 680 $request_id->get_error_message(), 681 681 'error' … … 684 684 } elseif ( ! $request_id ) { 685 685 add_settings_error( 686 'username_or_email_ to_export',687 'username_or_email_ to_export',686 'username_or_email_for_privacy_request', 687 'username_or_email_for_privacy_request', 688 688 __( 'Unable to initiate confirmation request.' ), 689 689 'error' … … 695 695 696 696 add_settings_error( 697 'username_or_email_ to_export',698 'username_or_email_ to_export',697 'username_or_email_for_privacy_request', 698 'username_or_email_for_privacy_request', 699 699 __( 'Confirmation request initiated successfully.' ), 700 700 'updated' … … 774 774 775 775 <div class="wp-privacy-request-form-field"> 776 <label for="username_or_email_ to_export"><?php esc_html_e( 'Username or email address' ); ?></label>777 <input type="text" required class="regular-text" id="username_or_email_ to_export" name="username_or_email_to_export" />776 <label for="username_or_email_for_privacy_request"><?php esc_html_e( 'Username or email address' ); ?></label> 777 <input type="text" required class="regular-text" id="username_or_email_for_privacy_request" name="username_or_email_for_privacy_request" /> 778 778 <?php submit_button( __( 'Send Request' ), 'secondary', 'submit', false ); ?> 779 779 </div> … … 847 847 848 848 <div class="wp-privacy-request-form-field"> 849 <label for="username_or_email_ to_export"><?php esc_html_e( 'Username or email address' ); ?></label>850 <input type="text" required class="regular-text" id="username_or_email_ to_export" name="username_or_email_to_export" />849 <label for="username_or_email_for_privacy_request"><?php esc_html_e( 'Username or email address' ); ?></label> 850 <input type="text" required class="regular-text" id="username_or_email_for_privacy_request" name="username_or_email_for_privacy_request" /> 851 851 <?php submit_button( __( 'Send Request' ), 'secondary', 'submit', false ); ?> 852 852 </div>
Note: See TracChangeset
for help on using the changeset viewer.