gocodebox / lifterlms

LifterLMS, a WordPress LMS Solution: Easily create, sell, and protect engaging online courses.
https://lifterlms.com
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

brianhogg commented 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

Captura de pantalla 2024-06-07 a las 12 02 48 p  m

Checklist: