From 145a09b48a35caf7dd594c5843620033641cfb48 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sun, 23 Sep 2012 19:36:17 +0000 Subject: [PATCH] XML-RPC: Accept 'url', not 'website' in wp.editProfile. props maxcutler. see #18428. git-svn-id: https://develop.svn.wordpress.org/trunk@21959 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/class-wp-xmlrpc-server.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wp-includes/class-wp-xmlrpc-server.php b/wp-includes/class-wp-xmlrpc-server.php index 44feadc09d..b2e6c450e7 100644 --- a/wp-includes/class-wp-xmlrpc-server.php +++ b/wp-includes/class-wp-xmlrpc-server.php @@ -2163,7 +2163,6 @@ class wp_xmlrpc_server extends IXR_Server { * - int $blog_id * - string $username * - string $password - * - int $user_id * - array $content_struct * It can optionally contain: * - 'first_name' @@ -2205,8 +2204,8 @@ class wp_xmlrpc_server extends IXR_Server { if ( isset( $content_struct['last_name'] ) ) $user_data['last_name'] = $content_struct['last_name']; - if ( isset( $content_struct['website'] ) ) - $user_data['user_url'] = $content_struct['website']; + if ( isset( $content_struct['url'] ) ) + $user_data['user_url'] = $content_struct['url']; if ( isset( $content_struct['display_name'] ) ) $user_data['display_name'] = $content_struct['display_name'];