Skip to content

Commit a38b2bd

Browse files
authored
wordpress: set jquery.com and api.jquery.com banner via php env var
Ref jquery/jquery-wp-content#468 Ref jquery/jquery.com#246 Ref jquery/api.jquery.com#1251 Closes gh-64
1 parent 24db5e8 commit a38b2bd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: modules/profile/templates/wordpress/docs/jquery-config.php.erb

+7
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,10 @@ define( 'JQUERY_STAGING_FORMAT', 'stage.%s' );
1414
if ( defined( 'XMLRPC_REQUEST' ) ) {
1515
@ini_set( 'memory_limit', '512M' );
1616
}
17+
18+
<%- if @live_site == 'jquery.com' || @live_site == 'api.jquery.com' -%>
19+
define(
20+
'JQUERY_BANNER',
21+
'jQuery 4.0 is coming soon! Prepare by <a href="https://jquery.com/download/">upgrading</a> to the latest jQuery 3.x release. Learn more about our <a href="https://jquery.com/support/">version support</a>.'
22+
);
23+
<%- end -%>

0 commit comments

Comments
 (0)