[wp-trac] [WordPress Trac] #14814: Use Dependency Injection or the like to instantiate wp_xmlrpc_server (was: Allow WP XML-RPC Library to be Extended)

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 9 17:26:53 UTC 2010


#14814: Use Dependency Injection or the like to instantiate wp_xmlrpc_server
--------------------------+-------------------------------------------------
 Reporter:  filosofo      |       Owner:                
     Type:  defect (bug)  |      Status:  assigned      
 Priority:  normal        |   Milestone:  Future Release
Component:  XML-RPC       |     Version:  3.1           
 Severity:  normal        |    Keywords:  has-patch     
--------------------------+-------------------------------------------------
Changes (by filosofo):

  * owner:  filosofo =>
  * milestone:  3.1 => Future Release


Old description:

> WP defines a large set (thousands of lines of code) of XML-RPC server
> methods in `xmlrpc.php`.
>
> Unfortunately, WP's server class is defined, instantiated, and executed
> all in the same file, which makes it difficult to use those methods
> elsewhere (for example, in my JSON RPC plugin).
>
> My patch moves the XML-RPC class to a file in `wp-includes`.

New description:

 Filter the `wp_xmlrpc_server` class or use some other means so that plugin
 authors can extend the XML-RPC server functionality.

--

Comment:

 All of this is valid discussion fodder, but not what I was really hoping
 to accomplish.   I am changing the title of the ticket to reflect its
 conversational trajectory more accurately.

 Related:  #14820

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


More information about the wp-trac mailing list