[wp-trac] [WordPress Trac] #31405: upgrade.php fails with mixed HTTPS (SSL) and simple HTTP sites

WordPress Trac noreply at wordpress.org
Mon Mar 2 12:37:47 UTC 2015


#31405: upgrade.php fails with mixed HTTPS (SSL) and simple HTTP sites
-----------------------------+------------------------------
 Reporter:  intersol         |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Upgrade/Install  |     Version:  trunk
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:  multisite
-----------------------------+------------------------------

Comment (by intersol):

 It seems that the initial patch I made was only a workaround for a much
 deeper issue. As my knowledge of Wordpress internals are not so good here
 are some findings:

 It seems that switch_to_blog doesn't do a proper job because only one URL
 function will return the correct value after calling the switch_to_blog.
 {{{
 switch_to_blog( $details['blog_id'] );
 $siteurl = site_url(); // will return a bad URL by using the scheme of
 multisite
 $z = get_bloginfo('wpurl'); // will return a bad URL using the scheme of
 multisite
 $y = get_option('siteurl'); // will return correct URL with the proper
 scheme, as the one stored in side the database
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31405#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list