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
610 stars 181 forks source link

issues:710 - Hotfix on regex pattern and resolve problem to show list-item. and add menu select feature. #738

Open vheidari opened 3 years ago

vheidari commented 3 years ago
  1. Hotfix on regex pattern and resolve problem to show list-item.

    714 For this situation we just needing to search for uppercase 'O' and 'C' letter in the serialized string.

    for that reason we should must remove insensitive "i" symbol from the end of the string pattern. with 'i' symbol and hybrid mode pattern ('O | C') preg_match function searched for any uppercase and lowercase letter and if find lowercase letter like 'o' in serialized text. this function return a wrong array that in result if statement ('//Prevent object injection or non arrays.') equal true then ot_decode function return '$fallback' value.


  1. Add menu select feature. Bringing all WordPress navigation menus to Option-Tree as a select box.