Home › Forums › ACF PRO › Date Picker: Using escape-characters results in odd behaviour › Reply To: Date Picker: Using escape-characters results in odd behaviour
I was able to fix this by changing api/api_field.php
on line 789 from:
$data = maybe_serialize( $data );
Once single slashes are replaced with double slashes (which then get escaped back to a single slash in the database post_content) it saves the proper serialized data and can be loaded correctly.
$data = maybe_serialize( $data );
$data = str_replace('\\', '\\\\', $data);
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.