Changeset 6265 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-profiles-wp-activity-notifier/wporg-profiles-wp-activity-notifier.php
- Timestamp:
- 12/13/2017 08:07:06 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-profiles-wp-activity-notifier/wporg-profiles-wp-activity-notifier.php
r5116 r6265 124 124 */ 125 125 public function notify_new_blog_post( $post ) { 126 // Don't notify if importing. 127 if ( defined( 'WP_IMPORTING' ) && WP_IMPORTING ) { 128 return; 129 } 130 126 131 $author = get_user_by( 'id', $post->post_author ); 127 132 … … 191 196 */ 192 197 private function notify_new_approved_comment( $comment, $post ) { 198 // Don't notify if importing. 199 if ( defined( 'WP_IMPORTING' ) && WP_IMPORTING ) { 200 return; 201 } 193 202 194 203 if ( ! $comment->user_id )
Note: See TracChangeset
for help on using the changeset viewer.