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
597 stars 179 forks source link

custom list-item field problem in version 2.7.3 #743

Open mehdi-eybak opened 1 year ago

mehdi-eybak commented 1 year ago

Hello, there is a problem in version 2.7.3 I have been using optiontree for almost 3 years. The problem is that I could customize the list of items up to version v2.7.2 and add a desired field, but this cannot be done in version 2.7.3.

What does this mean?

The photo below is related to version 2.7.2 that I have customized. Of course, sorry, my language is Persian.

Screenshot 2022-11-16 215015

behzadmsalehi commented 1 year ago

just search for this : pregmatch( '/O|C:+?\d+:"[a-z0-9]+":+?\d+:/i', $decoded, $obj_matches, PREG_OFFSET_CAPTURE, 0 ); in : ot-functions-admin.php and replace it with : pregmatch( '/O|C:+?\d+:"[a-z0-9]+":+?\d+:/', $decoded, $obj_matches, PREG_OFFSET_CAPTURE, 0 );

mehdi-eybak commented 1 year ago

just search for this : pregmatch( '/O|C:+?\d+:"[a-z0-9]+":+?\d+:/i', $decoded, $obj_matches, PREG_OFFSET_CAPTURE, 0 ); in : ot-functions-admin.php and replace it with : pregmatch( '/O|C:+?\d+:"[a-z0-9]+":+?\d+:/', $decoded, $obj_matches, PREG_OFFSET_CAPTURE, 0 ); Hey thank you very much