[wp-trac] [WordPress Trac] #14814: Allow WP XML-RPC Library to be Extended

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 8 15:31:29 UTC 2010


#14814: Allow WP XML-RPC Library to be Extended
--------------------------+-------------------------------------------------
 Reporter:  filosofo      |       Owner:  filosofo 
     Type:  defect (bug)  |      Status:  assigned 
 Priority:  normal        |   Milestone:  3.1      
Component:  XML-RPC       |     Version:  3.1      
 Severity:  normal        |    Keywords:  has-patch
--------------------------+-------------------------------------------------

Comment(by filosofo):

 Replying to [comment:7 josephscott]:
 > I appreciate the idea, but I'm not sure this will actually solve your
 use case very well.  Nearly all of the RPC functions will return an XML-
 RPC error if the login fails, which won't work for JSON RPC responses.

 Actually, I have the plugin set up to handle `IXR_Error` error objects
 (and `WP_Error` objects) returned from the server methods. (Currently I
 have a `WP_JSON_RPC_Server` class that extends `IXR_Server`; it would be
 nice if I could extend `wp_xmlrpc_server` instead.)

 I'm working on a sample implementation, and when I'm done I'll post a link
 to the plugin on the JSON RPC ticket so you can see it in action.

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


More information about the wp-trac mailing list