| @@ 192-196 (lines=5) @@ | ||
| 189 | ||
| 190 | // Bail if we're not trying to delete connection owner. |
|
| 191 | $user_ids_to_delete = array(); |
|
| 192 | if ( isset( $_REQUEST['users'] ) ) { |
|
| 193 | $user_ids_to_delete = array_map( 'sanitize_text_field', wp_unslash( $_REQUEST['users'] ) ); |
|
| 194 | } elseif ( isset( $_REQUEST['user'] ) ) { |
|
| 195 | $user_ids_to_delete[] = sanitize_text_field( wp_unslash( $_REQUEST['user'] ) ); |
|
| 196 | } |
|
| 197 | ||
| 198 | // phpcs:enable |
|
| 199 | $user_ids_to_delete = array_map( 'absint', $user_ids_to_delete ); |
|
| @@ 98-108 (lines=11) @@ | ||
| 95 | ); |
|
| 96 | ||
| 97 | $track = array(); |
|
| 98 | if ( is_404() ) { |
|
| 99 | // This is a 404 and we are supposed to track them. |
|
| 100 | $custom_vars[] = "_gaq.push(['_trackEvent', '404', document.location.href, document.referrer]);"; |
|
| 101 | } elseif ( |
|
| 102 | is_search() |
|
| 103 | && isset( $_REQUEST['s'] ) |
|
| 104 | ) { |
|
| 105 | // Set track for searches, if it's a search, and we are supposed to. |
|
| 106 | $track['data'] = sanitize_text_field( wp_unslash( $_REQUEST['s'] ) ); // Input var okay. |
|
| 107 | $track['code'] = 'search'; |
|
| 108 | } |
|
| 109 | ||
| 110 | if ( ! empty( $track ) ) { |
|
| 111 | $track['url'] = $this->_get_url( $track ); |
|