PluginProbe
Sharing Image / 3.7
Sharing Image v3.7
3.10 trunk 2.0 2.0.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.13 2.0.14 2.0.15 2.0.16 2.0.17 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 3.0 3.1 3.2 3.3 All 29 releases
← All changes | classes/class-widget.php +1 -1 3.33.7 View file →
@@ -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 ) {