I’ve created a settings page with group add-more field and I’m observing strange behavior of the data in the array with these settings. Elements of an array with the settings that are strings become arrays, and then again strings.
Here is the code: http://pastebin.com/whuJJhpE
How to reproduce?
create settings page with group add-more field ( pastebin – step 1)
add one element and save (see array structure on pastebin – step 2)
add another element and save ( see array structure on pastebin – step 3, strings become arrays),
just save the settings once again ( see array structure on pastebin – step 4, arrays become strings)
I hope that you will know how to fix this bug 🙂