Changeset 11892
- Timestamp:
- 05/26/2022 05:12:01 PM (2 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-profiles-wp-activity-notifier
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-profiles-wp-activity-notifier/tests/e2e.php
r11846 r11892 57 57 58 58 } else { 59 // These should notify 59 60 $notifier->maybe_notify_new_published_post( 'publish', 'draft', get_post( 1802 ) ); // post 60 61 sleep( 1 ); // buddypress doesn't show activity that happens at the exact same time … … 62 63 sleep( 1 ); 63 64 $notifier->maybe_notify_new_published_post( 'publish', 'draft', get_post( 1832 ) ); // course 65 66 // These should not notify 67 $notifier->maybe_notify_new_published_post( 'publish', 'draft', get_post( 722 ) ); // x-post (should not notify, check https://profiles.wordpress.org/jmdodd/) 64 68 } 65 69 } -
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-profiles-wp-activity-notifier/wporg-profiles-wp-activity-notifier.php
r11891 r11892 113 113 // Some Handbook posts are automatically created and don't have an author. 114 114 elseif ( $post->wporg_markdown_source || ! $post->post_author ) { 115 $notifiable = false; 116 } 117 118 elseif ( $post->_xpost_original_permalink || str_starts_with( $post->post_name, 'xpost-' ) ) { 115 119 $notifiable = false; 116 120 }
Note: See TracChangeset
for help on using the changeset viewer.