| @@ -56,13 +56,8 @@ | ||
| 56 | 56 | if ( empty( $args->search ) ) { |
| 57 | 57 | return $result; |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | - if ( is_wp_error( $result ) ) { | |
| 61 | - // This may happen if the request failed due to an internet connection issue. | |
| 62 | - return $result; | |
| 63 | - } | |
| 64 | - | |
| 65 | 60 | $addon_list = $this->get_addons(); |
| 66 | 61 | |
| 67 | 62 | // Lowercase, trim, remove punctuation/special chars, decode url, remove 'formidable'. |
| 68 | 63 | $normalized_term = $this->search_to_array( $args->search ); |