Using stripslashes malforms arrays for post metadata
|Reported by:||jacobsantos||Owned by:||jacobsantos|
|Milestone:||2.7||Priority:||highest omg bbq|
|Component:||General||Keywords:||has-patch tested commit|
In the database, the gallery has _wp_attachment_metadata set as "Array" this means that somewhere in the execution path, the meta data value was converted to a string. Following the execution has found that stripslashes() is the cause of the malformed array meta data values.
The patch solves this problem and keeps the stripslashes for strings. The recommendation is to remove the requirement that strings have slashes added in order to simplify the code.
Change History (9)
comment:1 @jacobsantos — 6 years ago
- Summary changed from Using stripslashes malforms arrays to Using stripslashes malforms arrays for post metadata