[wp-trac] [WordPress Trac] #42810: Updating metadata via the REST API fails when sanitized values match existing values
WordPress Trac
noreply at wordpress.org
Tue Jan 23 14:06:43 UTC 2018
#42810: Updating metadata via the REST API fails when sanitized values match
existing values
--------------------------------------+------------------------------
Reporter: bradyvercher | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 4.7
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+------------------------------
Comment (by mfolkeseth):
I have a use case which I would like to add to this ticket. If the
incoming meta value is a stringified javascript object (JSON),
[https://core.trac.wordpress.org/browser/trunk/src/wp-includes/rest-
api/fields/class-wp-rest-meta-fields.php#L314 this if] check will fail
because the incoming meta value is {{{wp_slash}}}-ed and old value is not
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42810#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list