[wp-trac] Re: [WordPress Trac] #9463: WP XML-RPC server classes should be in a separated file + PATCH

WordPress Trac wp-trac at lists.automattic.com
Sun Apr 5 22:06:36 GMT 2009


#9463: WP XML-RPC server classes should be in a separated file + PATCH
--------------------------+-------------------------------------------------
 Reporter:  nicolagreco   |       Owner:  josephscott      
     Type:  defect (bug)  |      Status:  new              
 Priority:  normal        |   Milestone:  Unassigned       
Component:  XML-RPC       |     Version:  2.8              
 Severity:  normal        |    Keywords:  reporter-feedback
--------------------------+-------------------------------------------------

Comment(by hakre):

 I now took a closer via to the XMLRPC class. If a plugin developer want's
 to add a RPC method, he/she can not, because the current method-calls via
 RPC prevent adding hooks dynamically. The methodnames must be defined in
 class wp_xmlrpc_server which can not be achieved by runtime.

 Even it is already possible to filter the methodnames, this only makes
 sense to remove them, but not to add.

 So far I'm concerned about nicolagreco motivation, he was after getting
 xmlrpc extended to be able to provide bbpress xmlrpc funcitons.

 adding hook:methods might help here. it could be quite easily implemented
 by subclassing IXR_Server::call with wp_xmlrpc_server::call and filtereing
 those.

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


More information about the wp-trac mailing list