diff --git a/modules/search/class.jetpack-search.php b/modules/search/class.jetpack-search.php index ddefbc729d5b6..4ba49c502eee2 100644 --- a/modules/search/class.jetpack-search.php +++ b/modules/search/class.jetpack-search.php @@ -114,7 +114,12 @@ public function store_query_failure( $meta ) { public function print_query_failure() { if ( $this->last_query_failure_info ) { - echo ''; + printf( + '', + esc_html( $this->last_query_failure_info['response_code'] ), + esc_html( $this->last_query_failure_info['json']['error'] ), + esc_html( $this->last_query_failure_info['json']['message'] ) + ); } } @@ -125,7 +130,11 @@ public function store_query_success( $meta ) { public function print_query_success() { if ( $this->last_query_info ) { - echo ''; + printf( + '', + intval( $this->last_query_info['elapsed_time'] ), + esc_html( $this->last_query_info['es_time'] ) + ); } }