[wp-trac] [WordPress Trac] #13350: update_metadata() updates unchanged values

WordPress Trac wp-trac at lists.automattic.com
Fri Jun 18 21:57:28 UTC 2010


#13350: update_metadata() updates unchanged values
--------------------------+-------------------------------------------------
 Reporter:  ryan          |        Owner:          
     Type:  defect (bug)  |       Status:  reopened
 Priority:  high          |    Milestone:  3.0     
Component:  Optimization  |      Version:  3.0     
 Severity:  major         |   Resolution:          
 Keywords:  has-patch     |  
--------------------------+-------------------------------------------------
Changes (by shawnparker):

  * severity:  normal => major


Comment:

 I just ran in to this as well and the issue for me is that a == check on
 two arrays will check that all the key/value pairs match, but doesn't care
 about order. This should probably be a === check to make sure that
 comparisons are strict.

 Will attach patch in a second.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13350#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list