[wp-trac] [WordPress Trac] #7871: Using stripslashes malforms arrays
WordPress Trac
wp-trac at lists.automattic.com
Sun Oct 12 05:32:40 GMT 2008
#7871: Using stripslashes malforms arrays
-----------------------------+----------------------------------------------
Reporter: jacobsantos | Owner: anonymous
Type: defect | Status: new
Priority: highest omg bbq | Milestone: 2.7
Component: General | Version:
Severity: blocker | Keywords:
-----------------------------+----------------------------------------------
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.
--
Ticket URL: <http://trac.wordpress.org/ticket/7871>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list