Skip to content

Commit 7e8f200

Browse files
committed
fixup! allow http or https
1 parent 1c14a5c commit 7e8f200

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/jquery-filters.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
// Ensure that the local port is used for template assets, if it exists.
3939
add_filter( 'theme_root_uri', function( $value ) {
4040
if ( JQUERY_STAGING === 'local' ) {
41-
$siteurl = 'http://' . strtr( JQUERY_STAGING_FORMAT, [ '%s' => JQUERY_LIVE_SITE ] );
41+
// Don't specify http vs https here, as the site may be accessed via either.
42+
$siteurl = '//' . strtr( JQUERY_STAGING_FORMAT, [ '%s' => JQUERY_LIVE_SITE ] );
4243
$value = $siteurl . '/wp-content/themes';
4344
}
4445
return $value;

0 commit comments

Comments
 (0)