Unserialize issue in plugin
-
We had an issue last night on a web site.
When the client saved a new job with application form fields, it appeared fine on the web site.
However, if they went back to edit then the fields would disappear from the front end, and on the backend all the fields would be set to Section Heading.
I tracked this down to multiple uses of $val = unserialize($val); after get_post_meta(). Many times this output is checked with is_serialized() or !is_array, but there’s instances where this check isn’t done so it tries to unserialize an array rather than a string and so errors.
Just sharing with the devs.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Unserialize issue in plugin’ is closed to new replies.