Make WordPress Core

Changeset 43465


Ignore:
Timestamp:
07/17/2018 07:42:23 AM (6 years ago)
Author:
pento
Message:

Privacy: Remove some unnecessary code comments.

[42967] introduced some WPCS-related comments, probably accidentally saved by an IDE.

Props burhandodhy.
Fixes #44590.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/user.php

    r43303 r43465  
    643643 */
    644644function _wp_personal_data_handle_actions() {
    645     if ( isset( $_POST['privacy_action_email_retry'] ) ) { // WPCS: input var ok.
     645    if ( isset( $_POST['privacy_action_email_retry'] ) ) {
    646646        check_admin_referer( 'bulk-privacy_requests' );
    647647
    648         $request_id = absint( current( array_keys( (array) wp_unslash( $_POST['privacy_action_email_retry'] ) ) ) ); // WPCS: input var ok, sanitization ok.
     648        $request_id = absint( current( array_keys( (array) wp_unslash( $_POST['privacy_action_email_retry'] ) ) ) );
    649649        $result     = _wp_privacy_resend_request( $request_id );
    650650
     
    665665        }
    666666    } elseif ( isset( $_POST['action'] ) ) {
    667         $action = isset( $_POST['action'] ) ? sanitize_key( wp_unslash( $_POST['action'] ) ) : ''; // WPCS: input var ok, CSRF ok.
     667        $action = isset( $_POST['action'] ) ? sanitize_key( wp_unslash( $_POST['action'] ) ) : '';
    668668
    669669        switch ( $action ) {
     
    672672                check_admin_referer( 'personal-data-request' );
    673673
    674                 if ( ! isset( $_POST['type_of_action'], $_POST['username_or_email_to_export'] ) ) { // WPCS: input var ok.
     674                if ( ! isset( $_POST['type_of_action'], $_POST['username_or_email_to_export'] ) ) {
    675675                    add_settings_error(
    676676                        'action_type',
     
    680680                    );
    681681                }
    682                 $action_type               = sanitize_text_field( wp_unslash( $_POST['type_of_action'] ) ); // WPCS: input var ok.
    683                 $username_or_email_address = sanitize_text_field( wp_unslash( $_POST['username_or_email_to_export'] ) ); // WPCS: input var ok.
     682                $action_type               = sanitize_text_field( wp_unslash( $_POST['type_of_action'] ) );
     683                $username_or_email_address = sanitize_text_field( wp_unslash( $_POST['username_or_email_to_export'] ) );
    684684                $email_address             = '';
    685685
     
    11621162    public function process_bulk_action() {
    11631163        $action      = $this->current_action();
    1164         $request_ids = isset( $_REQUEST['request_id'] ) ? wp_parse_id_list( wp_unslash( $_REQUEST['request_id'] ) ) : array(); // WPCS: input var ok, CSRF ok.
     1164        $request_ids = isset( $_REQUEST['request_id'] ) ? wp_parse_id_list( wp_unslash( $_REQUEST['request_id'] ) ) : array();
     1165       
    11651166        $count       = 0;
    11661167
Note: See TracChangeset for help on using the changeset viewer.