Changeset 2027 for sites/trunk/wordpress.org/public_html/wp-content/plugins/trac-notifications/trac-notifications.php
- Timestamp:
- 11/02/2015 05:33:50 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/trac-notifications/trac-notifications.php
r2026 r2027 13 13 protected $components; 14 14 15 protected $tracs_supported = array( 'core', 'meta', 'themes', 'plugins');16 protected $tracs_supported_extra = array( 'bbpress', 'buddypress', 'gsoc', 'glotpress');15 protected $tracs_supported = array( 'core', 'meta', /* 'themes', 'plugins' */ ); 16 protected $tracs_supported_extra = array( /* 'bbpress', 'buddypress', 'gsoc', 'glotpress' */ ); 17 17 18 18 function __construct() { … … 26 26 } 27 27 28 if ( function_exists( 'add_db_table' ) ) { 28 $this->trac = $trac; 29 30 if ( 'core' === $trac && function_exists( 'add_db_table' ) ) { 29 31 $tables = array( 'ticket', '_ticket_subs', '_notifications', 'ticket_change', 'component', 'milestone', 'ticket_custom' ); 30 32 foreach ( $tables as $table ) { … … 32 34 } 33 35 } 34 $this->api = new Trac_Notifications_DB( $GLOBALS['wpdb'] ); 36 37 if ( 'core' === $trac ) { 38 $this->api = new Trac_Notifications_DB( $GLOBALS['wpdb'] ); 39 } else { 40 $this->api = new Trac_Notifications_HTTP_Client( $this->trac_url() . '/wpapi', TRAC_NOTIFICATIONS_API_KEY ); 41 } 35 42 36 43 if ( 'core' === $trac ) { … … 38 45 $this->components = new Make_Core_Trac_Components( $this->api ); 39 46 } 40 41 $this->trac = $trac;42 47 43 48 add_filter( 'allowed_http_origins', array( $this, 'filter_allowed_http_origins' ) );
Note: See TracChangeset
for help on using the changeset viewer.