WordPress.org

Make WordPress Core

Changeset 24382


Ignore:
Timestamp:
05/29/2013 11:01:32 AM (5 years ago)
Author:
westi
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-xmlrpc-server.php

    r24255 r24382  
    327327                'readonly'      => true,
    328328                'option'        => 'home'
     329            ),
     330            'login_url'          => array(
     331                'desc'          => __( 'Login Address (URL)' ),
     332                'readonly'      => true,
     333                'value'         => wp_login_url( )
     334            ),
     335            'admin_url'          => array(
     336                'desc'          => __( 'The URL to the admin area' ),
     337                'readonly'      => true,
     338                'value'         => get_admin_url( )
    329339            ),
    330340            'image_default_link_type' => array(
Note: See TracChangeset for help on using the changeset viewer.