[wp-trac] [WordPress Trac] #23905: Add_post_meta strips slashes
WordPress Trac
noreply at wordpress.org
Sat Mar 30 00:28:27 UTC 2013
#23905: Add_post_meta strips slashes
--------------------------+------------------------------
Reporter: Looimaster | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.5.1
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by Looimaster):
I think that it happens in:
http://core.trac.wordpress.org/browser/tags/3.5.1/wp-includes/meta.php#L0
When it performs:
{{{
// expected_slashed ($meta_key)
46 $meta_key = stripslashes($meta_key);
47 $meta_value = stripslashes_deep($meta_value);
48 $meta_value = sanitize_meta( $meta_key, $meta_value, $meta_type );
}}}
So, it is there for a reason but it is conflicting my strings by removing
slashes from them... Shouldn't a string always remain an intact string?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23905#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list