[wp-trac] [WordPress Trac] #42069: Saving metadata fails (randomly) if equal value already exists

WordPress Trac noreply at wordpress.org
Fri Jun 8 14:40:12 UTC 2018


#42069: Saving metadata fails (randomly) if equal value already exists
--------------------------+------------------------------
 Reporter:  JVel          |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  REST API      |     Version:  4.8.2
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  rest-api
--------------------------+------------------------------

Comment (by dcavins):

 Hi @MattGeri- I've tested your suggestion, and it works for textured text,
 but fails when updating booleans
 (`test_update_value_return_success_response_when_updating_boolean_values_no_change()`
 here:
 https://core.trac.wordpress.org/attachment/ticket/42069/42069.2.diff)

 I've added a test that includes a single quote per your suggestion. Any
 other feedback is welcome--it'd be great to have comprehensive tests of
 cases we know fail.

 Without the change, all three of my test cases fail. :(

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


More information about the wp-trac mailing list