| @@ 157-161 (lines=5) @@ | ||
| 154 | ||
| 155 | // Bail if we're not trying to delete connection owner. |
|
| 156 | $user_ids_to_delete = array(); |
|
| 157 | if ( isset( $_REQUEST['users'] ) ) { |
|
| 158 | $user_ids_to_delete = array_map( 'sanitize_text_field', wp_unslash( $_REQUEST['users'] ) ); |
|
| 159 | } elseif ( isset( $_REQUEST['user'] ) ) { |
|
| 160 | $user_ids_to_delete[] = sanitize_text_field( wp_unslash( $_REQUEST['user'] ) ); |
|
| 161 | } |
|
| 162 | ||
| 163 | // phpcs:enable |
|
| 164 | $user_ids_to_delete = array_map( 'absint', $user_ids_to_delete ); |
|
| @@ 85-95 (lines=11) @@ | ||
| 82 | ); |
|
| 83 | ||
| 84 | $track = array(); |
|
| 85 | if ( is_404() ) { |
|
| 86 | // This is a 404 and we are supposed to track them. |
|
| 87 | $custom_vars[] = "_gaq.push(['_trackEvent', '404', document.location.href, document.referrer]);"; |
|
| 88 | } elseif ( |
|
| 89 | is_search() |
|
| 90 | && isset( $_REQUEST['s'] ) |
|
| 91 | ) { |
|
| 92 | // Set track for searches, if it's a search, and we are supposed to. |
|
| 93 | $track['data'] = sanitize_text_field( wp_unslash( $_REQUEST['s'] ) ); // Input var okay. |
|
| 94 | $track['code'] = 'search'; |
|
| 95 | } |
|
| 96 | ||
| 97 | if ( ! empty( $track ) ) { |
|
| 98 | $track['url'] = $this->_get_url( $track ); |
|