[wp-trac] [WordPress Trac] #23839: wp_insert_post() duplicate insertions
WordPress Trac
noreply at wordpress.org
Mon Jan 11 17:19:30 UTC 2016
#23839: wp_insert_post() duplicate insertions
-------------------------------+----------------------
Reporter: mikemayhem3030 | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Posts, Post Types | Version: 3.5.1
Severity: normal | Resolution: invalid
Keywords: reporter-feedback | Focuses:
-------------------------------+----------------------
Changes (by SergeyBiryukov):
* status: reopened => closed
* resolution: => invalid
* component: General => Posts, Post Types
Comment:
Replying to [comment:11 cakePlease]:
> 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.
Apparently the script runs into some kind of a race condition.
Please try the support forums to get help with your issue:
https://wordpress.org/support/.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/23839#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list