[wp-trac] [WordPress Trac] #17343: update_post_meta removes all slashes
WordPress Trac
wp-trac at lists.automattic.com
Sat May 7 02:17:35 UTC 2011
#17343: update_post_meta removes all slashes
--------------------------+-----------------------------
Reporter: 5ubliminal | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Plugins | Version: 3.1.1
Severity: blocker | Keywords:
--------------------------+-----------------------------
'''update_post_meta''' with a new meta_key forwards the call to
'''update_metadata''' and then it gets forwarded to '''add_metadata'''.
Funny thing is that both functions '''stripslashes_deep()''' the
meta_value so I kind of remain slash-less in the process.
{{{
update_post_meta(1, 'new_meta_key', "x\\\\y"); // Adds 'xy' instead of
'x\y'
}}}
Am I missing something? This internal slashes abuse scares me. I can't
come up with a fix because this slashes fetish is beyond me.
Thanks.
''PS: It happens in 3.1.2 but can't find it in the list.''
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17343>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list