From 72c65ee4265f8a1d8f1d1f9a2dab4c6f6ecf6684 Mon Sep 17 00:00:00 2001 From: escapemanuele Date: Mon, 4 Mar 2024 12:39:11 +0000 Subject: [PATCH] Verbum-Gutenberg: Show to 80% of users (#36121) Co-authored-by: Kosta Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/8140138054 --- composer.lock | 14 +++++++------- vendor/automattic/jetpack-mu-wpcom/CHANGELOG.md | 1 + .../verbum-comments/class-verbum-comments.php | 6 +++--- vendor/composer/installed.json | 12 ++++++------ vendor/composer/installed.php | 12 ++++++------ 5 files changed, 23 insertions(+), 22 deletions(-) diff --git a/composer.lock b/composer.lock index 1353598d..11ec89ca 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "54e0e665a81029121ce04859d46b830a", + "content-hash": "4f87b0f30fb1cbcdc7d37621039b316f", "packages": [ { "name": "automattic/jetpack-assets", @@ -12,7 +12,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-assets", - "reference": "38f7a95d6ca874e178894d65cd33689758273af5" + "reference": "39d36fc6bf999e12bd12b1fbab5df98da9b5b6d4" }, "require": { "automattic/jetpack-constants": "^2.0.0", @@ -78,7 +78,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-constants", - "reference": "3089b78875bf183814ef60a4cda03be9c3724458" + "reference": "28c4566b297ad224ce0bad34be49e92cdb16d240" }, "require": { "php": ">=7.0" @@ -125,11 +125,11 @@ }, { "name": "automattic/jetpack-mu-wpcom", - "version": "5.15.0-alpha.1709554753", + "version": "5.15.0-alpha.1709555207", "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-mu-wpcom", - "reference": "4c7cad81609347d083b85f23d3d42aacede02fa8" + "reference": "a776b58ade449fb120deed2b490aa06c4d82d9d1" }, "require": { "automattic/jetpack-assets": "^2.1.2-alpha", @@ -198,7 +198,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/scheduled-updates", - "reference": "8b816871968d2806d53bdc52afeed5d261b583da" + "reference": "0d5e440ea05ffcc7f6c89f2f80668b9946b778f5" }, "require": { "php": ">=7.0" @@ -262,7 +262,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-changelogger", - "reference": "86d73de1fb751b5683bc52ea07f7e6819659c4ec" + "reference": "018ad0480ab991c98f3a141471c690b3259a3049" }, "require": { "php": ">=7.0", diff --git a/vendor/automattic/jetpack-mu-wpcom/CHANGELOG.md b/vendor/automattic/jetpack-mu-wpcom/CHANGELOG.md index 45129b69..f7b151c8 100644 --- a/vendor/automattic/jetpack-mu-wpcom/CHANGELOG.md +++ b/vendor/automattic/jetpack-mu-wpcom/CHANGELOG.md @@ -15,6 +15,7 @@ This is an alpha version! The changes listed here are not final. ### Changed - Add-Ons: Hide the menu on atomic sites - Scheduled Updates: Load API endpoints on WP.com so it works with public-api passthrough. +- Show gutenberg in verbum to 80% of users - The Command Palette loads the script with a `defer` strategy now to improve the performance. - Updated package dependencies. diff --git a/vendor/automattic/jetpack-mu-wpcom/src/features/verbum-comments/class-verbum-comments.php b/vendor/automattic/jetpack-mu-wpcom/src/features/verbum-comments/class-verbum-comments.php index 33d5cc0e..4024595b 100644 --- a/vendor/automattic/jetpack-mu-wpcom/src/features/verbum-comments/class-verbum-comments.php +++ b/vendor/automattic/jetpack-mu-wpcom/src/features/verbum-comments/class-verbum-comments.php @@ -566,8 +566,8 @@ public function should_load_gutenberg_comments() { $has_blocks_flag = function_exists( 'has_blog_sticker' ) && has_blog_sticker( 'verbum-block-comments', $blog_id ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended $gutenberg_query_param = isset( $_GET['verbum_gutenberg'] ) ? intval( $_GET['verbum_gutenberg'] ) : null; - // This will release to 50% of sites. - $blog_in_10_percent = $blog_id % 100 >= 50; + // This will release to 80% of sites. + $blog_in_80_percent = $blog_id % 100 >= 20; // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable $is_proxied = isset( $_SERVER['A8C_PROXIED_REQUEST'] ) ? sanitize_text_field( wp_unslash( $_SERVER['A8C_PROXIED_REQUEST'] ) ) @@ -578,7 +578,7 @@ public function should_load_gutenberg_comments() { return $gutenberg_query_param === 1; } - return $has_blocks_flag || $e2e_tests || $blog_in_10_percent; + return $has_blocks_flag || $e2e_tests || $blog_in_80_percent; } /** diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index 68bfb83b..dc2459ee 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -7,7 +7,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-assets", - "reference": "38f7a95d6ca874e178894d65cd33689758273af5" + "reference": "39d36fc6bf999e12bd12b1fbab5df98da9b5b6d4" }, "require": { "automattic/jetpack-constants": "^2.0.0", @@ -76,7 +76,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-constants", - "reference": "3089b78875bf183814ef60a4cda03be9c3724458" + "reference": "28c4566b297ad224ce0bad34be49e92cdb16d240" }, "require": { "php": ">=7.0" @@ -125,12 +125,12 @@ }, { "name": "automattic/jetpack-mu-wpcom", - "version": "5.15.0-alpha.1709554753", - "version_normalized": "5.15.0.0-alpha1709554753", + "version": "5.15.0-alpha.1709555207", + "version_normalized": "5.15.0.0-alpha1709555207", "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-mu-wpcom", - "reference": "4c7cad81609347d083b85f23d3d42aacede02fa8" + "reference": "a776b58ade449fb120deed2b490aa06c4d82d9d1" }, "require": { "automattic/jetpack-assets": "^2.1.2-alpha", @@ -202,7 +202,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/scheduled-updates", - "reference": "8b816871968d2806d53bdc52afeed5d261b583da" + "reference": "0d5e440ea05ffcc7f6c89f2f80668b9946b778f5" }, "require": { "php": ">=7.0" diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index c40708c9..6c172cac 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -13,7 +13,7 @@ 'automattic/jetpack-assets' => array( 'pretty_version' => '2.1.2-alpha.1709373058', 'version' => '2.1.2.0-alpha1709373058', - 'reference' => '38f7a95d6ca874e178894d65cd33689758273af5', + 'reference' => '39d36fc6bf999e12bd12b1fbab5df98da9b5b6d4', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../automattic/jetpack-assets', 'aliases' => array(), @@ -22,16 +22,16 @@ 'automattic/jetpack-constants' => array( 'pretty_version' => '2.0.0', 'version' => '2.0.0.0', - 'reference' => '3089b78875bf183814ef60a4cda03be9c3724458', + 'reference' => '28c4566b297ad224ce0bad34be49e92cdb16d240', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../automattic/jetpack-constants', 'aliases' => array(), 'dev_requirement' => false, ), 'automattic/jetpack-mu-wpcom' => array( - 'pretty_version' => '5.15.0-alpha.1709554753', - 'version' => '5.15.0.0-alpha1709554753', - 'reference' => '4c7cad81609347d083b85f23d3d42aacede02fa8', + 'pretty_version' => '5.15.0-alpha.1709555207', + 'version' => '5.15.0.0-alpha1709555207', + 'reference' => 'a776b58ade449fb120deed2b490aa06c4d82d9d1', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../automattic/jetpack-mu-wpcom', 'aliases' => array(), @@ -49,7 +49,7 @@ 'automattic/scheduled-updates' => array( 'pretty_version' => '0.3.0-alpha.1709517923', 'version' => '0.3.0.0-alpha1709517923', - 'reference' => '8b816871968d2806d53bdc52afeed5d261b583da', + 'reference' => '0d5e440ea05ffcc7f6c89f2f80668b9946b778f5', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../automattic/scheduled-updates', 'aliases' => array(),