[wp-trac] [WordPress Trac] #36055: Filter xmlrpc_enabled only	partly works
    WordPress Trac 
    noreply at wordpress.org
       
    Fri Mar  4 09:11:51 UTC 2016
    
    
  
#36055: Filter xmlrpc_enabled only partly works
--------------------------+------------------
 Reporter:  markoheijnen  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.5
Component:  XML-RPC       |     Version:  2.9
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------
Comment (by mensmaximus):
 Replying to [comment:15 markoheijnen]:
 > I added a version that checks for the pingback methods.
 The initial intention was different. The patch as it is now is not needed
 because its behavior would be the same as filtering all methods with the
 'xmlrpc_methods' filter like:
 {{{#!php
 <?php
 add_filter( 'xmlrpc_methods', 'remove_xmlrpc_methods');
 function remove_xmlrpc_methods( $methods ) {
     foreach ( $methods as $key => $value) {
         if ( strpos( $value, 'pingback' ) === false ) {
             unset( $methods[$key] );
         }
     }
     return $methods;
 }
 }}}
 As stated before the intention is to completely disable XML-RPC. If
 disabled, no request should be processed from IXR and there should be no
 response to the client.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36055#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
    
    
More information about the wp-trac
mailing list