Making WordPress.org


Ignore:
Timestamp:
03/21/2019 09:50:55 PM (6 years ago)
Author:
iandunn
Message:

WordCamp Payments Network: Temporarily disable cron jobs for debugging.

See https://wordpress.slack.com/archives/G02QCEMRY/p1553203553063500.

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  
    1212
    1313        // 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' ) );
    1818        add_action( 'network_admin_menu', array( __CLASS__, 'network_admin_menu' ) );
    1919        add_action( 'init', array( __CLASS__, 'upgrade' ) );
     
    2323        add_action( 'delete_post', array( __CLASS__, 'delete_post' ) );
    2424
    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 );
    2727    }
    2828
Note: See TracChangeset for help on using the changeset viewer.