| @@ -598,9 +598,9 @@ | ||
| 598 | 598 | if ( wp_is_post_revision( $post_id ) ) { |
| 599 | 599 | return; |
| 600 | 600 | } |
| 601 | 601 | |
| 602 | - if ( ! current_user_can( 'edit_post', $post_id ) ) { | |
| 602 | + if ( ( ! defined( 'DOING_CRON' ) || ! DOING_CRON ) && ! current_user_can( 'edit_post', $post_id ) ) { | |
| 603 | 603 | return; |
| 604 | 604 | } |
| 605 | 605 | |
| 606 | 606 | if ( 'trash' === $post->post_status || 'auto-draft' === $post->post_status ) { |