Make WordPress Core

Changeset 43485


Ignore:
Timestamp:
07/17/2018 03:24:57 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Privacy: Remove some unnecessary code comments.

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

Props burhandodhy.
Merges [43465] to the 4.9 branch.
Fixes #44590.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

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

    r43479 r43485  
    602602 */
    603603function _wp_personal_data_handle_actions() {
    604     if ( isset( $_POST['privacy_action_email_retry'] ) ) { // WPCS: input var ok.
     604    if ( isset( $_POST['privacy_action_email_retry'] ) ) {
    605605        check_admin_referer( 'bulk-privacy_requests' );
    606606
    607         $request_id = absint( current( array_keys( (array) wp_unslash( $_POST['privacy_action_email_retry'] ) ) ) ); // WPCS: input var ok, sanitization ok.
     607        $request_id = absint( current( array_keys( (array) wp_unslash( $_POST['privacy_action_email_retry'] ) ) ) );
    608608        $result     = _wp_privacy_resend_request( $request_id );
    609609
     
    624624        }
    625625    } elseif ( isset( $_POST['action'] ) ) {
    626         $action = isset( $_POST['action'] ) ? sanitize_key( wp_unslash( $_POST['action'] ) ) : ''; // WPCS: input var ok, CSRF ok.
     626        $action = isset( $_POST['action'] ) ? sanitize_key( wp_unslash( $_POST['action'] ) ) : '';
    627627
    628628        switch ( $action ) {
     
    11211121    public function process_bulk_action() {
    11221122        $action      = $this->current_action();
    1123         $request_ids = isset( $_REQUEST['request_id'] ) ? wp_parse_id_list( wp_unslash( $_REQUEST['request_id'] ) ) : array(); // WPCS: input var ok, CSRF ok.
     1123        $request_ids = isset( $_REQUEST['request_id'] ) ? wp_parse_id_list( wp_unslash( $_REQUEST['request_id'] ) ) : array();
     1124       
    11241125        $count       = 0;
    11251126
Note: See TracChangeset for help on using the changeset viewer.