[wp-trac] [WordPress Trac] #11081: wp_insert_post() creates duplicates posts with two simultaneous mysql connections

WordPress Trac wp-trac at lists.automattic.com
Thu Nov 5 14:18:36 UTC 2009


#11081: wp_insert_post() creates duplicates posts with two simultaneous mysql
connections
--------------------------+-------------------------------------------------
 Reporter:  maribge       |       Owner:  ryan             
     Type:  defect (bug)  |      Status:  new              
 Priority:  normal        |   Milestone:  2.9              
Component:  Query         |     Version:                   
 Severity:  normal        |    Keywords:  reporter-feedback
--------------------------+-------------------------------------------------
Changes (by scribu):

  * keywords:  wp_insert_post, duplicate entries, mysql => reporter-
               feedback


Comment:

 Add this condition and see if it helps:

 {{{
 if ( true === DOING_CRON || true === DOING_AJAX )
     return;
 }}}

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


More information about the wp-trac mailing list