Ticket #23446: login-url-xmlrpc.diff

File login-url-xmlrpc.diff, 785 bytes (added by daniloercoli, 3 months ago)
Line 
1Index: wp-includes/class-wp-xmlrpc-server.php
2===================================================================
3--- wp-includes/class-wp-xmlrpc-server.php      (revision 23400)
4+++ wp-includes/class-wp-xmlrpc-server.php      (working copy)
5@@ -327,6 +327,16 @@
6                                'readonly'      => true,
7                                'option'        => 'home'
8                        ),
9+                       'login_url'          => array(
10+                               'desc'          => __( 'Login Address (URL)' ),
11+                               'readonly'      => true,
12+                               'value'         => wp_login_url( )
13+                       ),
14+                       'admin_url'          => array(
15+                               'desc'          => __( 'The URL to the admin area' ),
16+                               'readonly'      => true,
17+                               'value'         => get_admin_url( )
18+                       ),
19                        'image_default_link_type' => array(
20                                'desc'          => __( 'Image default link type' ),
21                                'readonly'      => true,