Making WordPress.org


Ignore:
Timestamp:
07/26/2015 06:55:54 PM (10 years ago)
Author:
nacin
Message:

Migrate @committers to /committers.

This will allow committer names to be included in the message, thus triggering a push notification with the actual content.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/api.wordpress.org/public_html/dotorg/slack/announce.php

    r1737 r1787  
    2727}
    2828
    29 if ( $_POST['token'] !== WEBHOOK_TOKEN && $_POST['token'] !== WEBHOOK_TOKEN_ALT ) {
    30     return;
     29$i = 0;
     30// WEBHOOK_TOKEN_1, WEBHOOK_TOKEN_2, etc.
     31while ( defined( __NAMESPACE__ . '\\WEBHOOK_TOKEN_' . ++$i ) ) {
     32    if ( constant( __NAMESPACE__ . '\\WEBHOOK_TOKEN_' . $i ) === $_POST['token'] ) {
     33        run( $_POST );
     34    }
    3135}
    3236
    33 run( $_POST );
     37}
    3438
    35 }
Note: See TracChangeset for help on using the changeset viewer.