[wp-trac] [WordPress Trac] #24933: update_metadata() returns true even if meta value not updated

WordPress Trac noreply at wordpress.org
Mon Sep 23 17:04:50 UTC 2013


#24933: update_metadata() returns true even if meta value not updated
------------------------------+-----------------------
 Reporter:  jdgrimes          |       Owner:  nacin
     Type:  defect (bug)      |      Status:  accepted
 Priority:  normal            |   Milestone:  3.7
Component:  General           |     Version:  3.6
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+-----------------------
Changes (by nacin):

 * keywords:  has-patch => has-patch commit


Comment:

 [attachment:24933.diff] updates a few option and meta functions to always
 check the result of the DB query, and to also wait to update any caches
 before that query is run.

 Cache deletion operations (in delete_option() etc) don't need to wait
 until the query is run.

 Just a bunch of code that gets moved around; but, needs review.

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


More information about the wp-trac mailing list