Making WordPress.org

Changeset 2384


Ignore:
Timestamp:
01/27/2016 07:07:55 PM (9 years ago)
Author:
iandunn
Message:

WordCamp Budgets: Temporarily disable Sponsor Invoices for regular users.

Banking delays have caused the QBO integration to be delayed longer than we expected, so this isn't ready for users yet. Having it in the menu has caused some organizers to start using it, so let's disable it until everything is ready.

It can remain active for super-admins/deputies, so that they can test it.

Location:
sites/trunk/wordcamp.org/public_html/wp-content/plugins
Files:
2 edited

Legend:

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

    r2302 r2384  
    2121     */
    2222    require_once( WP_PLUGIN_DIR . '/wordcamp-payments/includes/wordcamp-budgets.php' );
    23     require_once( WP_PLUGIN_DIR . '/wordcamp-payments/includes/sponsor-invoice.php'  );
     23    if ( defined( 'WPORG_PROXIED_REQUEST' ) && WPORG_PROXIED_REQUEST ) {
     24        require_once( WP_PLUGIN_DIR . '/wordcamp-payments/includes/sponsor-invoice.php' );
     25    }
    2426
    2527    require_once( __DIR__ . '/includes/wordcamp-budgets-dashboard.php' );
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/bootstrap.php

    r2301 r2384  
    1616    require_once( __DIR__ . '/includes/wordcamp-budgets.php' );
    1717    require_once( __DIR__ . '/includes/payment-request.php' );
    18     require_once( __DIR__ . '/includes/sponsor-invoice.php' );
     18    if ( defined( 'WPORG_PROXIED_REQUEST' ) && WPORG_PROXIED_REQUEST ) {
     19        require_once( __DIR__ . '/includes/sponsor-invoice.php' );
     20    }
    1921    require_once( __DIR__ . '/includes/encryption.php' );
    2022
Note: See TracChangeset for help on using the changeset viewer.