Making WordPress.org

Changeset 2302


Ignore:
Timestamp:
01/16/2016 12:22:43 AM (9 years ago)
Author:
iandunn
Message:

WordCamp Budgets Dashboard: Add screen to monitor/approve Sponsor Invoices.

Location:
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network
Files:
9 added
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network/bootstrap.php

    r2298 r2302  
    1515defined( 'WPINC' ) or die();
    1616
    17 if ( is_admin() ) {
     17if ( is_admin() || defined( 'DOING_CRON' ) ) {
     18    /*
     19     * The bootloader for WordCamp Budgets only loads files during is_admin(), because that's all that plugin
     20     * needs, but this plugin also needs some of them to be active during cron jobs.
     21     */
     22    require_once( WP_PLUGIN_DIR . '/wordcamp-payments/includes/wordcamp-budgets.php' );
     23    require_once( WP_PLUGIN_DIR . '/wordcamp-payments/includes/sponsor-invoice.php'  );
     24
    1825    require_once( __DIR__ . '/includes/wordcamp-budgets-dashboard.php' );
    1926    require_once( __DIR__ . '/includes/payment-requests-dashboard.php' );
     27    require_once( __DIR__ . '/includes/sponsor-invoices-dashboard.php' );
    2028
    2129    $GLOBALS['Payment_Requests_Dashboard'] = new \Payment_Requests_Dashboard();
Note: See TracChangeset for help on using the changeset viewer.