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: http://core.svn.wordpress.org/trunk@24382 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5c23d5908a
commit
34001cb325
|
@ -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