[wp-trac] [WordPress Trac] #42810: Updating metadata via the REST API fails when sanitized values match existing values
WordPress Trac
noreply at wordpress.org
Mon Sep 17 19:37:41 UTC 2018
#42810: Updating metadata via the REST API fails when sanitized values match
existing values
--------------------------------------+-----------------------
Reporter: bradyvercher | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.0
Component: REST API | Version: 4.7
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: rest-api
--------------------------------------+-----------------------
Comment (by dcavins):
Replying to [comment:10 boonebgorges]:
Boone, I'd like to add a test case to the tests in #42069 to cover this
case. I added a case using the value
{{{
json_encode ( array(
"one" => "Someone's Text/Value",
"two" => 2,
"three" => array( 1, 1, 2, 3, 5 ),
) );
}}}
but it appears to pass without the suggested fix. Can you suggest a string
or encoded item that currently fails to update via the REST API that I can
add to the test cases?
Thanks!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42810#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list