Plugin Directory

Changeset 3197653


Ignore:
Timestamp:
11/26/2024 07:20:09 PM (16 months ago)
Author:
thronspa
Message:

Fixed clientId exception on failed isset

File:
1 edited

Legend:

Unmodified
Added
Removed
  • thron/trunk/admin/class-thron-admin.php

    r3197646 r3197653  
    7070        }
    7171
    72         $this->clientId = $thron_options['thron_clientId'];
     72        $this->clientId = isset($thron_options['thron_clientId']) ? $thron_options['thron_clientId'] : '';
    7373
    7474        $clientId = (isset($thron_options['thron_clientId'])) ? $thron_options['thron_clientId'] : '';
     
    244244        $appKey   = (isset($thron_options['thron_appKey'])) ? $thron_options['thron_appKey'] : '' ;
    245245
    246         wp_enqueue_script( 'thron-js', 'https://' . $thron_options['thron_clientId'] . '-cdn.thron.com/shared/lib/common/sdk/0.5.2/thron.js', array(), $this->version, true );
     246        wp_enqueue_script( 'thron-js', 'https://' . $clientId . '-cdn.thron.com/shared/lib/common/sdk/0.5.2/thron.js', array(), $this->version, true );
    247247
    248248
Note: See TracChangeset for help on using the changeset viewer.