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:
parent
de68a37dc4
commit
e54227056b
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue