[wp-trac] [WordPress Trac] #30454: A slug can't be registered when it uses wp_insert_post fuinction in wp_cron event
WordPress Trac
noreply at wordpress.org
Sat Nov 22 09:44:16 UTC 2014
#30454: A slug can't be registered when it uses wp_insert_post fuinction in wp_cron
event
-------------------------------+------------------------------
Reporter: horike | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------------+------------------------------
Comment (by TobiasBg):
The `current_user_can` function does operate when WP_Cron is run, but the
problem is that the cron runs as an unprivileged user -- which does not
possess the `publish_posts` capability.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30454#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list