File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -408,9 +408,13 @@ function jquery_default_site_options() {
408
408
// However, sites that use jquery-static-index.php cause index pages
409
409
// to redirect to live sites in local development. This filter does not
410
410
// prevent the redirect, but changes the redirect to the local site.
411
+ //
412
+ // WordPress/wp-login.php requires 'home' to use a full URL.
413
+ // If it uses a protocol-relative URL, it uses the entire URL as the path=
414
+ // and thus cause cookies to never be sent by the browser.
411
415
if ( JQUERY_STAGING ) {
412
- $ defaults ['home ' ] = '// ' . jquery_site_expand ( JQUERY_LIVE_SITE );
413
- $ defaults ['siteurl ' ] = '// ' . jquery_site_expand ( JQUERY_LIVE_SITE );
416
+ $ defaults ['home ' ] = 'http: // ' . jquery_site_expand ( JQUERY_LIVE_SITE );
417
+ $ defaults ['siteurl ' ] = 'http: // ' . jquery_site_expand ( JQUERY_LIVE_SITE );
414
418
}
415
419
return $ defaults ;
416
420
You can’t perform that action at this time.
0 commit comments