Making WordPress.org


Ignore:
Timestamp:
10/21/2019 06:45:47 AM (5 years ago)
Author:
dd32
Message:

Slack: When sending notifications to the 'parent' channel, keep in mind that some channels don't follow the #parent-subarea format.

See #4747.

File:
1 edited

Legend:

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

    r9216 r9217  
    113113    // Broadcast this message as a non-@here to the "parent" channel too.
    114114    list( $parent_channel, ) = explode( '-', $channel, 2 );
     115
     116    // Some channels parents are not a 1:1 match.
     117    if ( 'feature' === $parent_channel ) {
     118        $parent_channel = 'core';
     119    } elseif ( 'community' === $parent_channel ) {
     120        $parent_channel = 'community-team';
     121    }
     122
     123    // Validate the channel.
    115124    if (
    116125        // Skip for private groups.
Note: See TracChangeset for help on using the changeset viewer.