I installed the "Merge Linked" script (found here:
and it works great until you link layers that are invisible.
The invisible layers suddenly become visible after being merged. A more
intuitive action would be for the merged layers to respect their current
state, since there is a reason why they're set to visible / invisible.
Gimp-user mailing list