Changeset 7376
- Timestamp:
- 07/05/2018 10:39:54 PM (8 years ago)
- Location:
- sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-reports
- Files:
-
- 4 edited
-
classes/report/class-payment-activity.php (modified) (1 diff)
-
classes/report/class-sponsor-invoices.php (modified) (1 diff)
-
classes/report/class-ticket-revenue.php (modified) (1 diff)
-
index.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-reports/classes/report/class-payment-activity.php
r6662 r7376 226 226 $reimbursements_table = Reimbursement_Requests\get_index_table_name(); 227 227 228 $extra_where = ( $this->wordcamp_site_id ) ? ' AND blog_id = ' . (int) $this->wordcamp_site_id : ''; 228 if ( $this->wordcamp_site_id ) { 229 $extra_where = sprintf( 230 ' AND blog_id = %d', 231 intval( $this->wordcamp_site_id ) 232 ); 233 } else { 234 $extra_where = sprintf( 235 ' AND blog_id NOT IN ( %s )', 236 implode( ',', Reports\get_excluded_site_ids() ) 237 ); 238 } 229 239 230 240 $index_query = $wpdb->prepare( " -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-reports/classes/report/class-sponsor-invoices.php
r6662 r7376 233 233 $where_clause[] = "blog_id = %d"; 234 234 $where_values[] = $this->wordcamp_site_id; 235 } else { 236 $where_clause[] = 'blog_id NOT IN ( %s )'; 237 $where_values[] = implode( ',', Reports\get_excluded_site_ids() ); 235 238 } 236 239 -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-reports/classes/report/class-ticket-revenue.php
r6662 r7376 255 255 $where_clause[] = 'blog_id = %d'; 256 256 $where_values[] = $this->wordcamp_site_id; 257 } else { 258 $where_clause[] = 'blog_id NOT IN ( %s )'; 259 $where_values[] = implode( ',', Reports\get_excluded_site_ids() ); 257 260 } 258 261 -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-reports/index.php
r6662 r7376 311 311 312 312 add_action( 'plugins_loaded', __NAMESPACE__ . '\register_file_exports' ); 313 314 /** 315 * A list of IDs for sites that should not be included in report results. 316 * 317 * @return array 318 */ 319 function get_excluded_site_ids() { 320 return array( 321 206, // 2016.testing 322 928, // 2017.testing 323 ); 324 }
Note: See TracChangeset
for help on using the changeset viewer.