WordPress.org

Making WordPress.org


Ignore:
Timestamp:
06/26/2016 12:46:55 PM (3 years ago)
Author:
nbachiyski
Message:

WordPress.org Slack Integrations: support fetching different security team user field

We need emails for syncing the security Slack channel with the Trac mailing list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/api.wordpress.org/public_html/dotorg/slack/security-team.php

    r2128 r3587  
    6767    }
    6868
    69     $team = get_security_team();
     69    $user_field = 'user_login';
     70    if ( isset( $_GET['user_field'] ) && 'user_email' === $_GET['user_field'] ) {
     71        $user_field = 'user_email';
     72    }
     73
     74    $team = get_security_team( $user_field );
    7075    if ( $team === false ) {
    7176        exit;
Note: See TracChangeset for help on using the changeset viewer.