Reference xmlrpc.php with the 'rpc' site_url() argument to ensure a proper scheme is applied. see #18731.

git-svn-id: http://core.svn.wordpress.org/trunk@22171 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2012-10-10 21:55:36 +00:00
parent d8cd26095a
commit 64a9609aeb
1 changed files with 2 additions and 2 deletions

View File

@ -495,7 +495,7 @@ class wp_xmlrpc_server extends IXR_Server {
'url' => home_url( '/' ),
'blogid' => (string) $blog_id,
'blogName' => get_option( 'blogname' ),
'xmlrpc' => site_url( 'xmlrpc.php' )
'xmlrpc' => site_url( 'xmlrpc.php', 'rpc' ),
);
restore_current_blog();
@ -3647,7 +3647,7 @@ class wp_xmlrpc_server extends IXR_Server {
'url' => get_option('home') . '/',
'blogid' => '1',
'blogName' => get_option('blogname'),
'xmlrpc' => site_url( 'xmlrpc.php' )
'xmlrpc' => site_url( 'xmlrpc.php', 'rpc' ),
);
return array($struct);