diff options
Diffstat (limited to 'plugins/jetpack/_inc/lib/class.jetpack-search-performance-logger.php')
-rw-r--r-- | plugins/jetpack/_inc/lib/class.jetpack-search-performance-logger.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/jetpack/_inc/lib/class.jetpack-search-performance-logger.php b/plugins/jetpack/_inc/lib/class.jetpack-search-performance-logger.php index f8de70ee..c3df0778 100644 --- a/plugins/jetpack/_inc/lib/class.jetpack-search-performance-logger.php +++ b/plugins/jetpack/_inc/lib/class.jetpack-search-performance-logger.php @@ -63,7 +63,7 @@ class Jetpack_Search_Performance_Logger { } private function record_query_time( $duration, $was_jetpack_search ) { - $this->stats[] = array( $was_jetpack_search, intval( $duration * 1000 ) ); + $this->stats[] = array( $was_jetpack_search, (int) ( $duration * 1000 ) ); } public function print_stats() { @@ -77,7 +77,7 @@ class Jetpack_Search_Performance_Logger { $encoded_json = '{%22beacons%22:[' . implode(',', $beacons ) . ']}'; $encoded_site_url = urlencode( site_url() ); $url = "https://pixel.wp.com/boom.gif?v=0.9&u={$encoded_site_url}&json={$encoded_json}"; - echo '<img src="' . $url . '" width="1" height="1" style="display:none;" alt=":)"/>'; + echo '<img src="' . esc_url( $url ) . '" width="1" height="1" style="display:none;" alt=""/>'; } } } |