[wp-trac] [WordPress Trac] #44154: saving backslash backslash into user_meta does not round-trip

WordPress Trac noreply at wordpress.org
Sat May 19 15:40:50 UTC 2018


#44154: saving backslash backslash into user_meta does not round-trip
--------------------------+----------------------
 Reporter:  ericscheid    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  General       |     Version:  4.9.5
 Severity:  critical      |  Resolution:  invalid
 Keywords:                |     Focuses:
--------------------------+----------------------
Changes (by johnbillion):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 Thanks for the report, @ericscheid . The meta functions expect slashed
 data. Yes this is nasty, but that's the unfortunate position we're in. You
 can pass the value through `wp_slash()` before passing it into this
 function.

 This is not very well documented. See #41593.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44154#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list