[wp-trac] [WordPress Trac] #43362: wp-cron duplicate wp_insert_post
WordPress Trac
noreply at wordpress.org
Tue Feb 20 03:03:38 UTC 2018
#43362: wp-cron duplicate wp_insert_post
--------------------------+-----------------------------
Reporter: jblara25 | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Cron API | Version: 4.9.4
Severity: normal | Resolution: invalid
Keywords: | Focuses: administration
--------------------------+-----------------------------
Changes (by dd32):
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
Hi @jblara25,
The issue you're probably running into is `Unfiltered HTML` - If you're
inserting `<` into the `post_title` it's probably being interprated as
HTML and stripped. When running in the cron, it has no user context (So no
HTML by default) but when run manually it's being run as an Administrator
(which has HTML capabilities).
Encode your post_title or escape it and you'll probably find it'll stop
happening.
However - WordPress trac is for reporting bugs in the open-source software
WordPress, this appears to be a plugin/custom code issue. For further
support the volunteers in the Support forums:
https://wordpress.org/support/ may be able to help.
As this isn't obviously a core bug, I'm marking this as `invalid`. If
you're able to reproduce the issue with a minimal code sniplet, please re-
open it with further details which shows it's a core bug.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43362#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list