Plugin Directory

Changeset 3431746


Ignore:
Timestamp:
01/03/2026 05:10:10 PM (3 months ago)
Author:
samukbg
Message:

Update to version 1.1.7 - Fixed configuration detection and improved subscription status accuracy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • post2podcast/trunk/includes/class-post2podcast-admin.php

    r3431709 r3431746  
    460460        // Option 3: Self-Hosted (only for whitelisted sites)
    461461        if ($this->is_whitelisted) {
    462             $self_hosted_api_key = get_option('post2podcast_openai_api_key', '');
    463             $self_hosted_server_url = get_option('post2podcast_server_url', '');
    464             $is_self_hosted_configured = !empty($self_hosted_api_key) && !empty($self_hosted_server_url);
     462            $self_hosted_api_key = isset($options['openai_api_key']) ? $options['openai_api_key'] : '';
     463            $self_hosted_server_url = isset($options['api_base_url']) ? $options['api_base_url'] : '';
     464            $self_hosted_enabled = isset($options['self_hosted_enabled']) && $options['self_hosted_enabled'];
     465            $is_self_hosted_configured = $self_hosted_enabled && !empty($self_hosted_api_key) && !empty($self_hosted_server_url);
    465466
    466467            echo '<div class="post2podcast-tier-card post2podcast-selfhosted-tier-status" style="flex: 1; min-width: 280px; ' . ($is_self_hosted_configured ? 'border: 2px solid #48bb78;' : '') . '">';
Note: See TracChangeset for help on using the changeset viewer.