Ticket #30454: wp_insert_post.diff
| File wp_insert_post.diff, 523 bytes (added by , 11 years ago) |
|---|
-
wp-includes/post.php
3162 3162 } 3163 3163 3164 3164 // Don't allow contributors to set the post slug for pending review posts. 3165 if ( 'pending' == $post_status && !current_user_can( 'publish_posts' ) ) {3165 if ( !defined('DOING_CRON') && !isset($_GET['doing_wp_cron']) && 'pending' == $post_status && !current_user_can( 'publish_posts' ) ) { 3166 3166 $post_name = ''; 3167 3167 } 3168 3168