[wp-trac] Re: [WordPress Trac] #7346: using custom fields interjects
back-slash?
WordPress Trac
wp-trac at lists.automattic.com
Fri Oct 10 06:02:12 GMT 2008
#7346: using custom fields interjects back-slash?
----------------------+-----------------------------------------------------
Reporter: Lilith70 | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.7
Component: General | Version: 2.6
Severity: normal | Resolution:
Keywords: |
----------------------+-----------------------------------------------------
Comment (by jamescollins):
I can confirm that this bug occurs in WP 2.6.2.
When adding a custom field to a post, if the field's value contains an
apostrophe or quotation mark (' or "), slashes are added to the
wp_postmeta record.
There must be an extra addslashes() call somewhere before the INSERT
statement.
Updating an existing custom field's value does not add extra slashes.
--
Ticket URL: <http://trac.wordpress.org/ticket/7346#comment:3>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list