From 509df6442df38983d2a6d2c50c78370ddb3a8553 Mon Sep 17 00:00:00 2001 From: ryan Date: Sat, 4 Jul 2009 02:48:22 +0000 Subject: [PATCH] Add 'rpc' context to siteurl which obeys ADMIN and LOGIN forced SSL. see #10330 git-svn-id: http://svn.automattic.com/wordpress/trunk@11686 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 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/ - - - - - + + + + +