Make WordPress Core

Ticket #30454: wp_insert_post.diff

File wp_insert_post.diff, 523 bytes (added by horike, 11 years ago)

This patch solve this problem

  • wp-includes/post.php

     
    31623162        }
    31633163
    31643164        // 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' ) ) {
    31663166                $post_name = '';
    31673167        }
    31683168