We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 286e155 commit 12bd35eCopy full SHA for 12bd35e
plugins/jquery-filters.php
@@ -37,6 +37,9 @@
37
38
// Ensure that the local port is used for template assets, if it exists.
39
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.
43
if ( JQUERY_STAGING === 'local' ) {
44
// Don't specify http vs https here, as the site may be accessed via either.
45
$siteurl = '//' . strtr( JQUERY_STAGING_FORMAT, [ '%s' => JQUERY_LIVE_SITE ] );
0 commit comments