'akismet_pre_check' => '1',
'comment_pingback_target' =>
$pingback_args[1
],
'pingbacks_closed' =>
$pingbacks_closed ? '1' : '0',
'is_multicall' =>
$is_multicall,
'multicall_count' =>
$multicall_count,
);
$comment = self::
auto_check_comment( $comment, 'xml-rpc'
);
if ( isset( $comment['akismet_result'
] ) && 'true' ==
$comment['akismet_result'
] ) { // Sad: tightly coupled with the IXR classes. Unfortunately the action provides no context and no way to return anything.
$wp_xmlrpc_server->
error( new IXR_Error( 0, 'Invalid discovery target'
) );
// Also note that if this was part of a multicall, a spam result will prevent the subsequent calls from being executed.
// This is probably fine, but it raises the bar for what should be acceptable as a false positive.
} } } /**
* Ensure that we are loading expected scalar values from akismet_as_submitted commentmeta.
*
* @param mixed $meta_value
* @return mixed
*/