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:
parent
d8cd26095a
commit
64a9609aeb
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue