diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index fb11137616..471a6468ba 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -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'; diff --git a/xmlrpc.php b/xmlrpc.php index 040582d588..e8d8a2e835 100644 --- a/xmlrpc.php +++ b/xmlrpc.php @@ -39,11 +39,11 @@ header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true); http://wordpress.org/ - - - - - + + + + +