From ac5925889a4e749bc24509cce59373836cd3f846 Mon Sep 17 00:00:00 2001 From: Bharat Pareek Date: Thu, 23 Feb 2023 18:21:30 +0530 Subject: [PATCH 1/2] Add support for web vitals ratio upto 0.001. --- php/src/class-webvitalstrackingratiofield.php | 2 +- tests/phpunit/class-test-settings.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/php/src/class-webvitalstrackingratiofield.php b/php/src/class-webvitalstrackingratiofield.php index 5a64481..446bedb 100644 --- a/php/src/class-webvitalstrackingratiofield.php +++ b/php/src/class-webvitalstrackingratiofield.php @@ -56,7 +56,7 @@ public function render() { $display_theme_override_warning = true; } ?> - diff --git a/tests/phpunit/class-test-settings.php b/tests/phpunit/class-test-settings.php index 9e1acac..aadf5c0 100644 --- a/tests/phpunit/class-test-settings.php +++ b/tests/phpunit/class-test-settings.php @@ -700,7 +700,7 @@ public function test_web_vitals_tracking_ratio_render__empty_options() { ob_end_clean(); $expected_html = << @@ -720,7 +720,7 @@ public function test_web_vitals_tracking_ratio_render__set_web_vitals_tracking_r ob_end_clean(); $expected_html = << @@ -741,7 +741,7 @@ public function test_web_vitals_tracking_ratio_render__theme_web_vitals_tracking ob_end_clean(); $expected_html = << Date: Mon, 6 Mar 2023 16:27:36 +0530 Subject: [PATCH 2/2] Update changelog. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 89b367e..257ae2c 100644 --- a/README.md +++ b/README.md @@ -102,6 +102,7 @@ All contributions are welcome! Please create [an issue](https://github.com/xwp/s #### 1.3 - February 24th, 2023 - Added INP metric. +- Support for smaller web vitals ratio. #### 1.2 - December 5, 2022