@gevoelvoorhumus I cannot figure out how to reproduce this issue.
Based on the screenshot you gave me, I am guessing you are just using a plain [leaflet-map]
shortcode, using the default lat/lng values. I don’t see how those values are passing the number validation:
filter_var($out, FILTER_VALIDATE_FLOAT, array('options' => array('decimal' => '.')));
That should force the number to have a ‘.’ as a decimal, and I think return null otherwise (not return the comma values)
Also, I’ve set up my development machine to use php 5.6, and wordpress 5.5.3, and switched my language to Dansk (spits out the locale “da_DK”), but I still can’t get the commas to remain in the script.