Making WordPress.org

Changeset 2521


Ignore:
Timestamp:
02/18/2016 09:40:49 PM (9 years ago)
Author:
iandunn
Message:

WordCamp QBO: Store result of wordcamp_qbo_sandbox_mode filter for reuse.

An upcoming commit will add another use for it.

File:
1 edited

Legend:

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

    r2473 r2521  
    1010    private static $hmac_key;
    1111
     12    private static $sandbox_mode;
    1213    private static $account;
    1314    private static $api_base_url;
     
    3536     */
    3637    public static function plugins_loaded() {
     38        self::$sandbox_mode = apply_filters( 'wordcamp_qbo_sandbox_mode', false );
    3739
    3840        $init_options = wp_parse_args( apply_filters( 'wordcamp_qbo_options', array() ), array(
     
    5456        self::$api_base_url = sprintf(
    5557            'https://%squickbooks.api.intuit.com',
    56             apply_filters( 'wordcamp_qbo_sandbox_mode', false ) ? 'sandbox-' : ''
     58             self::$sandbox_mode ? 'sandbox-' : ''
    5759        );
    5860
Note: See TracChangeset for help on using the changeset viewer.