WordPress.org

Make WordPress Core

Opened 8 years ago

Closed 7 years ago

#18424 closed feature request (maybelater)

Create users via XML-RPC

Reported by: nprasath002 Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: XML-RPC Keywords: has-patch
Focuses: Cc:

Description

enables admin users to create users via xmlrpc.
only users with capability 'create_users' can create a user.
Users cannot register themselves because it will allow spammers to create mass accounts.

Attachments (2)

wp.newUser.patch (5.9 KB) - added by nprasath002 8 years ago.
wp.newUser.2.patch (3.5 KB) - added by maxcutler 8 years ago.

Download all attachments as: .zip

Change History (5)

#1 @maxcutler
8 years ago

  • Cc max@… added

Cleaned up patch formatting and error codes.

Refined validation logic to remove some duplication of code from wp_insert_user (which will be caught by is_wp_error at end of the method).

Refined send_mail logic to reuse existing pluggable functionality.

#2 @nprasath002
8 years ago

Im not sure about having two parameter names (user_login and username).
I first developed as this and changed it following a discussion
in GSoC blog and with my mentor.
http://gsoc2011.wordpress.com/2011/07/23/wp-web-services-%E2%80%93-weekly-update/

Anyway its not a major issue

#3 @nacin
7 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to maybelater
  • Status changed from new to closed

Per IRC discussion (see #18428), this isn't going to be part of XML-RPC for the time being.

Note: See TracTickets for help on using tickets.