this is the query:
SELECT DISTINCT wp_posts.*
FROM wp_posts JOIN wp_icl_translations wpml_translations
ON wp_posts.ID = wpml_translations.element_id
AND wpml_translations.element_type = CONCAT(‘post_’, wp_posts.post_type)
WHERE 1=1
AND wp_posts.ID IN (61639,61374,61630,53763,53772,53766,53541,53538,52620,51930,51909,51753,51693,51525,51522,51447,51408,49659,49404,49311,49305,49320,49323,47939,47588,47312,47321,47291,47078,43459,43495,43474,43501,43498,44119,44025,44131,47963,48044,47984,47981,47918,47903,47975)
AND wp_posts.post_type = ‘attachment’
AND ((wp_posts.post_status = ‘inherit’))
AND ( ( ( wpml_translations.language_code = ‘nl’
OR 0 )
AND wp_posts.post_type IN (‘post’,’page’,’attachment’,’product’,’product_variation’,’cookielawinfo’,’templatera’ ) )
OR wp_posts.post_type NOT IN (‘post’,’page’,’attachment’,’product’,’product_variation’,’cookielawinfo’,’templatera’ ) )
ORDER BY wp_posts.post_modified DESC
Looks like the arguments in $args are not passed through by wp_parse_args in wp_includes/post.php