Changeset 8486 for sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network/includes/payment-requests-dashboard.php
- Timestamp:
- 03/21/2019 09:50:55 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network/includes/payment-requests-dashboard.php
r6106 r8486 12 12 13 13 // Schedule the aggregate event only on the main blog in the network. 14 if ( get_current_blog_id() == $current_site->blog_id && ! wp_next_scheduled( 'wordcamp_payments_aggregate' ) ) 15 wp_schedule_event( time(), 'hourly', 'wordcamp_payments_aggregate' );16 17 add_action( 'wordcamp_payments_aggregate', array( __CLASS__, 'aggregate' ) );14 // if ( get_current_blog_id() == $current_site->blog_id && ! wp_next_scheduled( 'wordcamp_payments_aggregate' ) ) { 15 // wp_schedule_event( time(), 'hourly', 'wordcamp_payments_aggregate' ); 16 17 // add_action( 'wordcamp_payments_aggregate', array( __CLASS__, 'aggregate' ) ); 18 18 add_action( 'network_admin_menu', array( __CLASS__, 'network_admin_menu' ) ); 19 19 add_action( 'init', array( __CLASS__, 'upgrade' ) ); … … 23 23 add_action( 'delete_post', array( __CLASS__, 'delete_post' ) ); 24 24 25 if ( ! empty( $_GET['wcp-debug-network'] ) && current_user_can( 'manage_network' ) )26 add_action( 'admin_init', function() { do_action( 'wordcamp_payments_aggregate' ); }, 99 );25 // if ( ! empty( $_GET['wcp-debug-network'] ) && current_user_can( 'manage_network' ) ) 26 // add_action( 'admin_init', function() { do_action( 'wordcamp_payments_aggregate' ); }, 99 ); 27 27 } 28 28
Note: See TracChangeset
for help on using the changeset viewer.