Questo codice mi sembra a posto, eppure ogni modifica di errore che mi suggerisce da sempre un errore, a me sembra a posto.

add_filter( 'relevanssi_bots_to_not_log', function( $bots )) {
 return array_merge( $bots, array( 'Bad Bot' => 'BadBot' ) );
}