- Timestamp:
- 11/24/2015 10:55:03 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/api.wordpress.org/public_html/dotorg/trac/mentions-handler.php
r2127 r2129 60 60 function wporg_mentions_limit_to_security_team( $usernames, $data ) { 61 61 require_once dirname( __DIR__ ) . '/slack/security-team.php'; 62 $team = \Dotorg\Slack\Security_Team\get_security_team( );62 $team = \Dotorg\Slack\Security_Team\get_security_team( 'user_nicename' ); 63 63 64 64 if ( ! empty( $data['object']->cc ) ) { … … 80 80 81 81 add_filter( 'wporg_notifications_notify_username', function( $notify, $username ) use ( $type, $payload, $wpdb ) { 82 // $username is user_nicename, but this function expects user_login. 83 $user = get_user_by( 'slug', $username ); 84 if ( ! $user ) { 85 return false; 86 } 87 $username = $user->user_login; 88 82 89 // Core Trac has notifications configured. 83 90 if ( $payload->trac === 'core' ) {
Note: See TracChangeset
for help on using the changeset viewer.