Changeset 2027
- Timestamp:
- 11/02/2015 05:33:50 AM (9 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/trac-notifications
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/trac-notifications/trac-notifications-http-client.php
-
Property
svn:eol-style
set to
native
r2026 r2027 12 12 } 13 13 14 $url = add_query_arg( array( 15 'call' => $method, 16 'secret' => $this->secret, 17 ), $this->target ); 14 $url = add_query_arg( 'call', $method, $this->target ); 18 15 19 16 $args = array( 20 'body' => array( 'arguments' => json_encode( $arguments ) ), 17 'body' => array( 18 'arguments' => json_encode( $arguments ), 19 'secret' => $this->secret, 20 ), 21 21 ); 22 22 -
Property
svn:eol-style
set to
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/trac-notifications/trac-notifications-http-server.php
-
Property
svn:eol-style
set to
native
-
Property
svn:eol-style
set to
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/trac-notifications/trac-notifications-sqlite-driver.php
r2026 r2027 37 37 public function get_var( $query ) { 38 38 if ( $q = $this->db->query( $query ) ) { 39 return $q->fetchColumn(); 39 $var = $q->fetchColumn(); 40 if ( $var !== false ) { 41 return $var; 42 } 40 43 } 44 return null; 41 45 } 42 46 -
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.