Changeset 1965 for sites/trunk/wordpress.org/public_html/wp-content/plugins/trac-notifications/trac-notifications.php
- Timestamp:
- 10/11/2015 09:38:57 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/trac-notifications/trac-notifications.php
r1917 r1965 9 9 10 10 protected $trac_subdomain; 11 protected $components; 11 12 12 13 protected $tracs_supported = array( 'core', 'meta', 'themes', 'plugins' ); … … 28 29 if ( 'core' === $trac ) { 29 30 require __DIR__ . '/trac-components.php'; 31 $this->components = new Make_Core_Trac_Components; 30 32 } 31 33 } … … 364 366 <?php 365 367 $this->ticket_notes( $ticket, $username ); 366 wp_send_json_success( array( 'notifications-box' => ob_get_clean() ) ); 368 $send = array( 'notifications-box' => ob_get_clean() ); 369 if ( isset( $this->components ) ) { 370 $send['maintainers'] = $this->components->get_maintainers_by_component( $ticket->component ); 371 } 372 wp_send_json_success( $send ); 367 373 exit; 368 374 }
Note: See TracChangeset
for help on using the changeset viewer.