diff --git a/includes/classes/Feature/Autosuggest/Autosuggest.php b/includes/classes/Feature/Autosuggest/Autosuggest.php index ee9d87057..0b71a3929 100644 --- a/includes/classes/Feature/Autosuggest/Autosuggest.php +++ b/includes/classes/Feature/Autosuggest/Autosuggest.php @@ -906,7 +906,7 @@ protected function set_settings_schema() { $this->settings_schema[] = [ 'disabled' => $set_in_wp_config, - 'help' => $set_in_wp_config ? __( 'This address will be exposed to the public.', 'elasticpress' ) : '', + 'help' => ! $set_in_wp_config ? __( 'A valid URL starting with http:// or https://. This address will be exposed to the public.', 'elasticpress' ) : '', 'key' => 'endpoint_url', 'label' => __( 'Endpoint URL', 'elasticpress' ), 'type' => 'url', diff --git a/includes/classes/REST/Features.php b/includes/classes/REST/Features.php index 9be6739e3..8d179d7a9 100644 --- a/includes/classes/REST/Features.php +++ b/includes/classes/REST/Features.php @@ -71,6 +71,10 @@ public function get_args() { case 'toggle': $property['type'] = 'boolean'; break; + case 'url': + $property['type'] = 'string'; + $property['format'] = 'uri'; + break; } $properties[ $schema['key'] ] = $property;