I haven’t inserted galleries for a while, but just now, when I try to insert a new gallery, things work ok but not perfect.
"Link to -> Media file", but the shortcode that appears in my editor looks like this:
I use the text editor, but I could see it works the same on visual editor.
If I switch to visual and try to edit the gallery, it does not detect the gallery type right, I get the autoselected
"Link to" ->
"Media File", but of course, there is no
link="file" in the code and it does not work like that (it does not link the images to files).
Switching (in visual editing) from default field to
"Link to" -> "Attachment page" and back to
"Media File" works, but those are extra steps I do not need to do.
Please auto-initialize those variables, so it works from start without any extra steps.