[wp-trac] [WordPress Trac] #15465: add_meta() can return the wrong meta_id

WordPress Trac wp-trac at lists.automattic.com
Thu Nov 18 06:19:39 UTC 2010


#15465: add_meta() can return the wrong meta_id
----------------------------+-----------------------------------------------
 Reporter:  cyberhobo       |       Owner:                 
     Type:  defect (bug)    |      Status:  new            
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:  3.1            
 Severity:  normal          |    Keywords:  has-patch      
----------------------------+-----------------------------------------------
 I think this is a simple global variable bug.

 Currently $wpdb->insert_id is being returned after do_action() is called,
 which can change that value if the action makes use of the global $wpdb.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15465>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list