XMLRPC: Expose the admin and login urls as read-only options over xml-rpc to make it easier to write rich clients. Fixes #23446 props daniloercoli.

git-svn-id: https://develop.svn.wordpress.org/trunk@24382 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2013-05-29 11:01:32 +00:00
parent de68a37dc4
commit e54227056b
1 changed files with 10 additions and 0 deletions

View File

@ -327,6 +327,16 @@ class wp_xmlrpc_server extends IXR_Server {
'readonly' => true,
'option' => 'home'
),
'login_url' => array(
'desc' => __( 'Login Address (URL)' ),
'readonly' => true,
'value' => wp_login_url( )
),
'admin_url' => array(
'desc' => __( 'The URL to the admin area' ),
'readonly' => true,
'value' => get_admin_url( )
),
'image_default_link_type' => array(
'desc' => __( 'Image default link type' ),
'readonly' => true,