From 72ddc13013eb65625f9cc00a03e0bd5bf2f3bcb3 Mon Sep 17 00:00:00 2001 From: Timmy Willison Date: Mon, 7 Oct 2024 23:03:27 -0400 Subject: [PATCH 1/2] wordpress: set banner via php env var --- .../profile/templates/wordpress/docs/jquery-config.php.erb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/profile/templates/wordpress/docs/jquery-config.php.erb b/modules/profile/templates/wordpress/docs/jquery-config.php.erb index aed617d..e40061d 100644 --- a/modules/profile/templates/wordpress/docs/jquery-config.php.erb +++ b/modules/profile/templates/wordpress/docs/jquery-config.php.erb @@ -14,3 +14,10 @@ define( 'JQUERY_STAGING_FORMAT', 'stage.%s' ); if ( defined( 'XMLRPC_REQUEST' ) ) { @ini_set( 'memory_limit', '512M' ); } + +<%- if @live_site == 'jquery.com' || @live_site == 'api.jquery.com' -%> +define( + 'JQUERY_BANNER', + 'jQuery 4.0 is currently in beta. Once released, jQuery 3.x will only receive critical updates. Learn more about our Version Support.' +); +<%- end -%> From e5559b1afa457f20726630a2c6e3b0a288820efc Mon Sep 17 00:00:00 2001 From: Timmy Willison Date: Wed, 9 Oct 2024 10:17:58 -0400 Subject: [PATCH 2/2] fixup! make banner message actionable (upgrade to prepare) --- modules/profile/templates/wordpress/docs/jquery-config.php.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/profile/templates/wordpress/docs/jquery-config.php.erb b/modules/profile/templates/wordpress/docs/jquery-config.php.erb index e40061d..e8bf434 100644 --- a/modules/profile/templates/wordpress/docs/jquery-config.php.erb +++ b/modules/profile/templates/wordpress/docs/jquery-config.php.erb @@ -18,6 +18,6 @@ if ( defined( 'XMLRPC_REQUEST' ) ) { <%- if @live_site == 'jquery.com' || @live_site == 'api.jquery.com' -%> define( 'JQUERY_BANNER', - 'jQuery 4.0 is currently in beta. Once released, jQuery 3.x will only receive critical updates. Learn more about our Version Support.' + 'jQuery 4.0 is coming soon! Prepare by upgrading to the latest jQuery 3.x release. Learn more about our version support.' ); <%- end -%>