mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user