src/Traits/Request_With_Content_Types.php
protected function string_contains( $haystack, $needles ) {
		foreach ( (array) $needles as $needle ) {
			if ( '' !== $needle && $this->_strpos( $haystack, $needle ) !== false ) {
				return true;
			}
		}

		return false;
	}
protected function string_contains( $haystack, $needles ) {
		foreach ( (array) $needles as $needle ) {
			if ( '' !== $needle && $this->_strpos( $haystack, $needle ) !== false ) {
				return true;
			}
		}

		return false;
	}
Determine if a given string contains a given substring.

@param  string       $haystack The given string.
@param  string|array $needles  An array or string to check.
@return bool