[wp-trac] [WordPress Trac] #35795: `update_metadata()` double-unslashes meta key when using `add_metadata()`

WordPress Trac noreply at wordpress.org
Thu Feb 11 14:14:08 UTC 2016

#35795: `update_metadata()` double-unslashes meta key when using `add_metadata()`
 Reporter:  jdgrimes                 |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Options, Meta APIs       |     Version:  trunk
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:

Comment (by jdgrimes):

 Replying to [comment:4 boonebgorges]:
 > See [attachment:35795.diff] for what I have in mind. I'm a bit cross-
 eyed from the number of slashes required to make the unit test work as
 expected, but I think it's correct.

 Thanks for looking into this @boonebgorges. I've uploaded
 [attachment:35795.2.diff] to use `wp_slash()` in the tests instead of
 placing the double slashes in the strings themselves, because I find that
 easier to follow.

Ticket URL: <https://core.trac.wordpress.org/ticket/35795#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list