WordPress.org

Making WordPress.org

Changeset 6265


Ignore:
Timestamp:
12/13/17 20:07:06 (5 weeks ago)
Author:
ocean90
Message:

Profiles Activity Notifier: Don't notify during imports.

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  
    124124     */ 
    125125    public function notify_new_blog_post( $post ) { 
     126        // Don't notify if importing. 
     127        if ( defined( 'WP_IMPORTING' ) && WP_IMPORTING ) { 
     128            return; 
     129        } 
     130 
    126131        $author = get_user_by( 'id', $post->post_author ); 
    127132 
     
    191196     */ 
    192197    private function notify_new_approved_comment( $comment, $post ) { 
     198        // Don't notify if importing. 
     199        if ( defined( 'WP_IMPORTING' ) && WP_IMPORTING ) { 
     200            return; 
     201        } 
    193202 
    194203        if ( ! $comment->user_id ) 
Note: See TracChangeset for help on using the changeset viewer.