[wp-trac] [WordPress Trac] #24106: Simplify wp_slash()
WordPress Trac
noreply at wordpress.org
Thu Jan 16 18:03:36 UTC 2014
#24106: Simplify wp_slash()
-------------------------+-----------------------------
Reporter: TobiasBg | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Formatting | Version: 3.6
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------+-----------------------------
Comment (by devesine):
Attached is a unit test for slashing behavior that includes datatype
sanctity (compare the StripSlashesDeep test). As it stands, calling
wp_slash followed by wp_unslash causes datatype loss.
This makes wp_slash rather unsuitable for use when preparing (for
instance) postmeta to pass to add_metadata.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/24106#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list