Making WordPress.org

Changeset 11201


Ignore:
Timestamp:
08/25/2021 06:58:32 AM (3 years ago)
Author:
dd32
Message:

Slack: Use the centralised $committers committers definition so as not to duplicate user lists in multiple places.

See #5870.

File:
1 edited

Legend:

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

    r11191 r11201  
    1818 *  - Private groups do NOT need to be listed here. All members of a private group can use announcements.
    1919 *  - Sub-channels inherit access, if a user is granted announce in #foo, they can also announce in #foo-bar.
     20 *  - Committers have access to `#core` and all sub-channels. The list comes from the global `$committers` configuration.
    2021 */
    2122function get_whitelist() {
     
    449450}
    450451
     452/**
     453 * Fetch a list of the WordPress core committers.
     454 *
     455 * This is defined on WordPress.org in a global variable called `$committers`.
     456 * It's defined as part of the configuration bootstrap.
     457 */
    451458function get_committers() {
    452     return array(
    453         'aaroncampbell', 'adamsilverstein', 'aduth', 'afercia', 'allancole', 'allendav',
    454         'antpb', 'atimmer', 'azaozz', 'bpayton', 'Clorith', 'davidbaumwald', 'dd32', 'desrosj',
    455         'DrewAPicture', 'ellatrix', 'flixos90', 'gziolo', 'helen', 'herregroen', 'ianbelanger',
    456         'iandunn', 'joedolson', 'joemcgill', 'joen', 'johnbillion', 'johnjamesjacoby', 'jorbin',
    457         'jorgefilipecosta', 'jrf', 'karmatosed', 'laurelfulford', 'matt', 'matveb', 'mcsf', 'melchoyce',
    458         'michaelarestad', 'mikeschroder', 'nacin', 'noisysocks', 'ocean90', 'omarreiss', 'pento',
    459         'peterwilsoncc', 'rachelbaker', 'ryelle', 'SergeyBiryukov', 'swissspidy', 'talldanwp', 'tellyworth',
    460         'TimothyBlynJacobs', 'westi', 'westonruter', 'whyisjake', 'williampatton', 'xknown', 'youknowriad',
    461 
    462     );
     459    global $committers;
     460
     461    if ( empty( $committers ) ) {
     462        return array();
     463    }
     464
     465    return array_keys( $committers );
    463466}
Note: See TracChangeset for help on using the changeset viewer.