[wp-trac] [WordPress Trac] #49339: Issue when comparing old and new meta of type integer on update_multi_meta_value

WordPress Trac noreply at wordpress.org
Sat May 16 20:52:30 UTC 2020


#49339: Issue when comparing old and new meta of type integer on
update_multi_meta_value
-------------------------------------------------+-------------------------
 Reporter:  renathoc                             |       Owner:
                                                 |  TimothyBlynJacobs
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  normal                               |   Milestone:  5.5
Component:  REST API                             |     Version:  4.7
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests dev-        |     Focuses:  rest-api
  feedback                                       |
-------------------------------------------------+-------------------------
Changes (by TimothyBlynJacobs):

 * keywords:   => has-patch has-unit-tests dev-feedback
 * owner:  (none) => TimothyBlynJacobs
 * version:  5.4 => 4.7
 * status:  new => assigned
 * milestone:  Awaiting Review => 5.5


Comment:

 Hi @renathoc,

 Thanks for reporting this and welcome to trac!

 As far as I can tell, this is the same underlying cause as #42069 but for
 multi meta.

 I've attached a preliminary patch which applies the same sanitization we
 use when updating a single value. Needs more unit tests covering the
 different meta types.

 Could you try applying the change to see if it fixes your issue @renathoc?

 Looping in @kadamwhite.

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


More information about the wp-trac mailing list