#7871 closed defect (bug) (fixed)
Using stripslashes malforms arrays for post metadata
| Reported by: | jacobsantos | Owned by: | jacobsantos |
|---|---|---|---|
| Priority: | highest omg bbq | Milestone: | 2.7 |
| Component: | General | Version: | 2.7 |
| Severity: | blocker | Keywords: | has-patch tested commit |
| Cc: | Focuses: |
Description
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.
Attachments (1)
Change History (9)
#1
@
18 years ago
- Summary Using stripslashes malforms arrays → Using stripslashes malforms arrays for post metadata
#4
@
18 years ago
- Keywords commit added
- Version → 2.7
This is a major error. It even fixes problems I was having in #7607.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Fix for malformed array in database based off of r9124