[wp-trac] [WordPress Trac] #23839: wp_insert_post() duplicate insertions

WordPress Trac noreply at wordpress.org
Sat Oct 17 18:40:35 UTC 2015


#23839: wp_insert_post() duplicate insertions
-------------------------------+-----------------------
 Reporter:  mikemayhem3030     |       Owner:
     Type:  defect (bug)       |      Status:  reopened
 Priority:  normal             |   Milestone:
Component:  General            |     Version:  3.5.1
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+-----------------------
Changes (by cakePlease):

 * status:  closed => reopened
 * resolution:  invalid =>


Comment:

 Im having the same problem, and a search online shows many others are as
 well. There doesnt seem to be a solution though.

 A use case for something like this could be, looping through an web
 service data source (eg tumblr/twitter/fb/etc) and inserting that as posts
 into WP. This script is executed via a server cron (not WP cron). Each
 loop iteration should add 1 post, but in fact it adds multiple entries of
 the same post.


 This has to be a bug.

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


More information about the wp-trac mailing list