| @@ 77-87 (lines=11) @@ | ||
| 74 | ); |
|
| 75 | ||
| 76 | $track = array(); |
|
| 77 | if ( is_404() ) { |
|
| 78 | // This is a 404 and we are supposed to track them. |
|
| 79 | $custom_vars[] = "_gaq.push(['_trackEvent', '404', document.location.href, document.referrer]);"; |
|
| 80 | } elseif ( |
|
| 81 | is_search() |
|
| 82 | && isset( $_REQUEST['s'] ) |
|
| 83 | ) { |
|
| 84 | // Set track for searches, if it's a search, and we are supposed to. |
|
| 85 | $track['data'] = sanitize_text_field( wp_unslash( $_REQUEST['s'] ) ); // Input var okay. |
|
| 86 | $track['code'] = 'search'; |
|
| 87 | } |
|
| 88 | ||
| 89 | if ( ! empty( $track ) ) { |
|
| 90 | $track['url'] = $this->_get_url( $track ); |
|
| @@ 186-190 (lines=5) @@ | ||
| 183 | ||
| 184 | // Bail if we're not trying to delete connection owner. |
|
| 185 | $user_ids_to_delete = array(); |
|
| 186 | if ( isset( $_REQUEST['users'] ) ) { |
|
| 187 | $user_ids_to_delete = array_map( 'sanitize_text_field', wp_unslash( $_REQUEST['users'] ) ); |
|
| 188 | } elseif ( isset( $_REQUEST['user'] ) ) { |
|
| 189 | $user_ids_to_delete[] = sanitize_text_field( wp_unslash( $_REQUEST['user'] ) ); |
|
| 190 | } |
|
| 191 | ||
| 192 | // phpcs:enable |
|
| 193 | $user_ids_to_delete = array_map( 'absint', $user_ids_to_delete ); |
|