LifterLMS, a WordPress LMS Solution: Easily create, sell, and protect engaging online courses.
GNU General Public License v3.0
174
stars
134
forks
source link
Prevent backslashes in meta content from being removed #2676
Open
brianhogg opened 3 weeks ago
Description
From the documentation of update_post_meta, if content we're trying to save contains backslashes, we should be calling
wp_slash()
to include them:https://developer.wordpress.org/reference/functions/update_post_meta/#more-information
Fixes #2675
How has this been tested?
Manually
Screenshots
Checklist:
npm run dev changelog add -- -i
and follow the prompt. See also: https://github.com/gocodebox/lifterlms/blob/trunk/packages/dev/README.md#changelog-add -->