valendesigns / option-tree

Theme Options UI Builder for WordPress. A simple way to create & save Theme Options and Meta Boxes for free or premium themes.
GNU General Public License v2.0
598 stars 180 forks source link

List item has default fields when adding with ajax #721

Open tjuris opened 4 years ago

tjuris commented 4 years ago

New list items have default fields. Fields are correct after saving.

The culprit looks to be in ot_decode, there should be a ! before $obj_matches : https://github.com/valendesigns/option-tree/blob/master/includes/ot-functions-admin.php#L5063

Luckily this function can be overriden.

feliperinaldi commented 4 years ago

"! before $obj_matches" fixed the issue for me.