Making WordPress.org

Changeset 14899


Ignore:
Timestamp:
05/20/2026 08:17:02 AM (5 days ago)
Author:
dd32
Message:

Slack: Announce: Don't send WP Credits announces to the parent channels/community-team channel. See https://wordpress.slack.com/archives/C02QHM0P8/p1777892109805499

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/common/includes/slack/announce/lib.php

    r14878 r14899  
    306306    $dont_send_to = [
    307307        'contributor-mentorship',
     308        'wpcredits',
    308309    ];
    309310
     
    320321        }
    321322
     323        // #wpcredits and #wpcredits-* inherit from #community-team for whitelist
     324        // purposes, but their announcements should stay within the wpcredits family.
     325        if ( 'community-team' === $parent_channel && str_starts_with( $channel, 'wpcredits' ) ) {
     326            continue;
     327        }
     328
    322329        $send->set_text( 'In #' . $channel . ': ' . $text );
    323330        $send->send( '#' . $parent_channel );
Note: See TracChangeset for help on using the changeset viewer.