[wp-trac] [WordPress Trac] #20704: New hook: login_init_xmlrpc

WordPress Trac wp-trac at lists.automattic.com
Fri Aug 3 19:12:52 UTC 2012


#20704: New hook: login_init_xmlrpc
-------------------------+------------------------------
 Reporter:  aercolino    |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  XML-RPC      |     Version:  3.3.2
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+------------------------------

Comment (by aercolino):

 I could use 'authenticate', but it's a bit too generic and it occurs on
 more places than I actually want to secure.

 Currently, 'authenticate' covers form, cookie, xmlrpc and atompub logins.
 Previous versions of my plugin covered only form logins and I'm going to
 cover xmlrpc logins with the next version. I do not want to cover cookie
 logins and I think I do not need to cover atompub logins. Actually I'm not
 sure about the latter, but I do not know any popular client of atompub, do
 you?

 So {{{login_init_xmlrpc}}} is a good solution for my problem. I don't know
 why there shouldn't be an init hook in all the logins. The reason I added
 the xmlrpc suffix is so that it doesn't clash with other possible handlers
 in other plugins. But if it was a new WP hook, I think it could be the
 usual login_init.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20704#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list