Making WordPress.org


Ignore:
Timestamp:
05/26/2022 05:12:01 PM (4 years ago)
Author:
iandunn
Message:

Profiles: Don't create redundant activity for x-posts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-profiles-wp-activity-notifier/tests/e2e.php

    r11846 r11892  
    5757
    5858    } else {
     59        // These should notify
    5960        $notifier->maybe_notify_new_published_post( 'publish', 'draft', get_post( 1802 ) ); // post
    6061        sleep( 1 ); // buddypress doesn't show activity that happens at the exact same time
     
    6263        sleep( 1 );
    6364        $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/)
    6468    }
    6569}
Note: See TracChangeset for help on using the changeset viewer.