Pinging xmlrpc.php awlays returns faultcode 0 and empty string
-
Hi to all,
Recently I started making some tests about xmlrpc.php pingbacks. What I observed is that whenever there is error while pinging a site, it ways returns XML with faultcode:0 and empty string, which doesn’t tells you anything.
Even if there are lots of error messages defined in class-wp-xmlrpc-server.php, they never get to the user, because of the filtering inside comment.php.
It seems that comment.php shows the real error only when it’s faultcode is 48 (which I don’t know what it stays for).
My question is, is the following code inside comment.php is intentional or it’s a bug ?
function xmlrpc_pingback_error( $ixr_error ) { if ( $ixr_error->code === 48 ) return $ixr_error; return new IXR_Error( 0, '' ); }This code returns faultcode 0 and empty error string for every error which has faultcode different then 48.
The topic ‘Pinging xmlrpc.php awlays returns faultcode 0 and empty string’ is closed to new replies.