WordPress.org

Make WordPress Core

Ticket #35269: xmlrpc.php.patch

File xmlrpc.php.patch, 669 bytes (added by onetarek, 21 months ago)
  • xmlrpc.php

     
    7878 * @param string $class The name of the XML-RPC server class. 
    7979 */ 
    8080$wp_xmlrpc_server_class = apply_filters( 'wp_xmlrpc_server_class', 'wp_xmlrpc_server' ); 
    81 $wp_xmlrpc_server = new $wp_xmlrpc_server_class; 
    8281 
    83 // Fire off the request 
    84 $wp_xmlrpc_server->serve_request(); 
     82if( is_string( $wp_xmlrpc_server_class ) && class_exists( $wp_xmlrpc_server_class ) ){ 
     83        $wp_xmlrpc_server = new $wp_xmlrpc_server_class; 
    8584 
     85        // Fire off the request 
     86        $wp_xmlrpc_server->serve_request(); 
     87} 
     88 
    8689exit; 
    8790 
    8891/**