Making WordPress.org


Ignore:
Timestamp:
02/25/2016 06:26:47 PM (9 years ago)
Author:
iandunn
Message:

WordCamp Budgets: Enable (but hide) Sponsor Invoice for unproxied users.

This is a safer way to make the new module available for beta testing on production, while still preventing regular users from accessing it before it's ready. The previous approach led to several instances of PHP errors that didn't show up during pre-commit testing, because I was always simulated as being proxied on my sandbox.

File:
1 edited

Legend:

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

    r2421 r2613  
    2121     */
    2222    require_once( WP_PLUGIN_DIR . '/wordcamp-payments/includes/wordcamp-budgets.php' );
    23     if ( defined( 'WPORG_PROXIED_REQUEST' ) && WPORG_PROXIED_REQUEST ) {
    24         require_once( WP_PLUGIN_DIR . '/wordcamp-payments/includes/sponsor-invoice.php' );
    25     }
     23    require_once( WP_PLUGIN_DIR . '/wordcamp-payments/includes/sponsor-invoice.php' );
    2624
    2725    require_once( __DIR__ . '/includes/wordcamp-budgets-dashboard.php' );
    2826    require_once( __DIR__ . '/includes/payment-requests-dashboard.php' );
    29     if ( defined( 'WPORG_PROXIED_REQUEST' ) && WPORG_PROXIED_REQUEST ) {
    30         require_once( __DIR__ . '/includes/sponsor-invoices-dashboard.php' );
    31     }
     27    require_once( __DIR__ . '/includes/sponsor-invoices-dashboard.php' );
    3228    require_once( __DIR__ . '/includes/reimbursement-requests-dashboard.php' );
    3329
Note: See TracChangeset for help on using the changeset viewer.