Changeset 10476
- Timestamp:
- 12/01/2020 12:23:34 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/api.wordpress.org/public_html/dotorg/trac/mentions-handler.php
r2129 r10476 5 5 define( 'MENTIONED', 2 ); 6 6 7 require dirname( dirname( __DIR__ ) ) . '/wp-init.php'; 7 8 require dirname( dirname( __DIR__ ) ) . '/includes/slack-config.php'; 8 9 … … 12 13 13 14 $payload = json_decode( $_POST['payload'] ); 14 15 $_SERVER['HTTP_HOST'] = 'wordpress.org';16 require WPORGPATH . 'wp-load.php';17 15 18 16 require_once WP_PLUGIN_DIR . '/wporg-notifications.php'; … … 38 36 39 37 $user = get_user_by( 'login', $user_login ); 38 if ( ! $user ) { 39 exit; 40 } 40 41 41 42 function wporg_user_has_visited_trac( $user_login ) {
Note: See TracChangeset
for help on using the changeset viewer.