Skip to content

Commit 12bd35e

Browse files
committed
fixup! add env var comment
1 parent 286e155 commit 12bd35e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugins/jquery-filters.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737

3838
// Ensure that the local port is used for template assets, if it exists.
3939
add_filter( 'theme_root_uri', function( $value ) {
40+
// All environment variables are set either in the local wp-config.php or via puppet.
41+
// Staging sites set JQUERY_STAGING to the boolean `true` instead of 'local'.
42+
// Production sites set it to false.
4043
if ( JQUERY_STAGING === 'local' ) {
4144
// Don't specify http vs https here, as the site may be accessed via either.
4245
$siteurl = '//' . strtr( JQUERY_STAGING_FORMAT, [ '%s' => JQUERY_LIVE_SITE ] );

0 commit comments

Comments
 (0)