]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/link-template.php
Wizard 2.8.2-scripts
[autoinstalls/wordpress.git] / wp-includes / link-template.php
index fb111376169b57a0e8d79bb0d592350293349f11..471a6468baac86660f1683b080a76b3b5899315d 100644 (file)
@@ -1693,7 +1693,7 @@ function site_url($path = '', $scheme = null) {
        // should the list of allowed schemes be maintained elsewhere?
        $orig_scheme = $scheme;
        if ( !in_array($scheme, array('http', 'https')) ) {
-               if ( ('login_post' == $scheme) && ( force_ssl_login() || force_ssl_admin() ) )
+               if ( ( 'login_post' == $scheme || 'rpc' == $scheme ) && ( force_ssl_login() || force_ssl_admin() ) )
                        $scheme = 'https';
                elseif ( ('login' == $scheme) && ( force_ssl_admin() ) )
                        $scheme = 'https';