From 3d8c9363a06e35859c38495ed6747860c8bd6ec4 Mon Sep 17 00:00:00 2001 From: ryan Date: Sat, 4 Jul 2009 02:49:44 +0000 Subject: [PATCH] Add 'rpc' context to siteurl which obeys ADMIN and LOGIN forced SSL. see #10330 for 2.8.1 git-svn-id: http://svn.automattic.com/wordpress/branches/2.8@11687 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/link-template.php | 2 +- xmlrpc.php | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) 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 d8f5fc8a95..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/ - - - - - + + + + +