Changeset 3437853
- Timestamp:
- 01/12/2026 03:10:10 PM (3 months ago)
- Location:
- post2podcast
- Files:
-
- 8 edited
- 1 copied
-
tags/1.2.6 (copied) (copied from post2podcast/trunk)
-
tags/1.2.6/includes/class-post2podcast-admin.php (modified) (1 diff)
-
tags/1.2.6/includes/class-post2podcast-api.php (modified) (3 diffs)
-
tags/1.2.6/post2podcast.php (modified) (2 diffs)
-
tags/1.2.6/readme.txt (modified) (2 diffs)
-
trunk/includes/class-post2podcast-admin.php (modified) (1 diff)
-
trunk/includes/class-post2podcast-api.php (modified) (3 diffs)
-
trunk/post2podcast.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
post2podcast/tags/1.2.6/includes/class-post2podcast-admin.php
r3437731 r3437853 139 139 public function register_settings() { 140 140 register_setting('post2podcast_options', 'post2podcast_options', array($this, 'validate_options')); 141 142 // One-time cleanup of the old 'text_model' setting. 143 $options = get_option('post2podcast_options'); 144 if (isset($options['text_model'])) { 145 unset($options['text_model']); 146 update_option('post2podcast_options', $options); 147 } 141 148 142 149 // Section for Subscription and Credits (Moved to top) -
post2podcast/tags/1.2.6/includes/class-post2podcast-api.php
r3437318 r3437853 265 265 if ($self_hosted_enabled) { 266 266 $openai_api_key = $options['openai_api_key'] ?? ''; 267 $text_model = $options['text_model'] ?? 'qwen3:8b';268 267 if (empty($this->api_base)) throw new Exception('API Base URL is not configured for self-hosted mode.'); 269 268 if (empty($openai_api_key)) throw new Exception('API key is not configured for self-hosted mode.'); … … 817 816 $this->api_base = $this->get_api_base_url($options); 818 817 $url = $this->api_base . '/generate-and-wait'; 819 $text_model = isset($options['text_model']) ? $options['text_model'] :'qwen3:8b';818 $text_model = 'qwen3:8b'; 820 819 821 820 // Ensure wp_user_email and wp_site_url are not empty … … 921 920 if ($self_hosted_enabled) { 922 921 $openai_api_key_for_job = $options['openai_api_key'] ?? ''; 923 $text_model_for_job = $options['text_model'] ??'qwen3:8b';922 $text_model_for_job = 'qwen3:8b'; 924 923 if (empty($this->api_base) || empty($openai_api_key_for_job)) { 925 924 return new WP_Error('self_host_config_error', 'Self-hosted API Base URL or API key not configured.'); -
post2podcast/tags/1.2.6/post2podcast.php
r3437731 r3437853 4 4 * Plugin server URI: https://github.com/samukbg/post2podcast-server 5 5 * Description: Convert WordPress posts into podcast episodes with AI voices 6 * Version: 1.2. 46 * Version: 1.2.6 7 7 * Author: Samuel Bezerra 8 8 * Author URI: https://github.com/samukbg … … 20 20 21 21 // Define plugin constants 22 define('POST2PODCAST_VERSION', '1.2. 4');22 define('POST2PODCAST_VERSION', '1.2.6'); 23 23 define('POST2PODCAST_PLUGIN_DIR', plugin_dir_path(__FILE__)); 24 24 define('POST2PODCAST_PLUGIN_URL', plugin_dir_url(__FILE__)); -
post2podcast/tags/1.2.6/readme.txt
r3437731 r3437853 5 5 Tested up to: 6.8 6 6 Requires PHP: 7.4 7 Stable tag: 1.2. 47 Stable tag: 1.2.6 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 274 274 == Changelog == 275 275 276 = 1.2.6 = 277 * IMPROVED: Minor bug fixes and performance improvements. 278 276 279 = 1.2.4 = 277 280 * IMPROVED: Minor bug fixes and performance improvements. -
post2podcast/trunk/includes/class-post2podcast-admin.php
r3437731 r3437853 139 139 public function register_settings() { 140 140 register_setting('post2podcast_options', 'post2podcast_options', array($this, 'validate_options')); 141 142 // One-time cleanup of the old 'text_model' setting. 143 $options = get_option('post2podcast_options'); 144 if (isset($options['text_model'])) { 145 unset($options['text_model']); 146 update_option('post2podcast_options', $options); 147 } 141 148 142 149 // Section for Subscription and Credits (Moved to top) -
post2podcast/trunk/includes/class-post2podcast-api.php
r3437318 r3437853 265 265 if ($self_hosted_enabled) { 266 266 $openai_api_key = $options['openai_api_key'] ?? ''; 267 $text_model = $options['text_model'] ?? 'qwen3:8b';268 267 if (empty($this->api_base)) throw new Exception('API Base URL is not configured for self-hosted mode.'); 269 268 if (empty($openai_api_key)) throw new Exception('API key is not configured for self-hosted mode.'); … … 817 816 $this->api_base = $this->get_api_base_url($options); 818 817 $url = $this->api_base . '/generate-and-wait'; 819 $text_model = isset($options['text_model']) ? $options['text_model'] :'qwen3:8b';818 $text_model = 'qwen3:8b'; 820 819 821 820 // Ensure wp_user_email and wp_site_url are not empty … … 921 920 if ($self_hosted_enabled) { 922 921 $openai_api_key_for_job = $options['openai_api_key'] ?? ''; 923 $text_model_for_job = $options['text_model'] ??'qwen3:8b';922 $text_model_for_job = 'qwen3:8b'; 924 923 if (empty($this->api_base) || empty($openai_api_key_for_job)) { 925 924 return new WP_Error('self_host_config_error', 'Self-hosted API Base URL or API key not configured.'); -
post2podcast/trunk/post2podcast.php
r3437731 r3437853 4 4 * Plugin server URI: https://github.com/samukbg/post2podcast-server 5 5 * Description: Convert WordPress posts into podcast episodes with AI voices 6 * Version: 1.2. 46 * Version: 1.2.6 7 7 * Author: Samuel Bezerra 8 8 * Author URI: https://github.com/samukbg … … 20 20 21 21 // Define plugin constants 22 define('POST2PODCAST_VERSION', '1.2. 4');22 define('POST2PODCAST_VERSION', '1.2.6'); 23 23 define('POST2PODCAST_PLUGIN_DIR', plugin_dir_path(__FILE__)); 24 24 define('POST2PODCAST_PLUGIN_URL', plugin_dir_url(__FILE__)); -
post2podcast/trunk/readme.txt
r3437731 r3437853 5 5 Tested up to: 6.8 6 6 Requires PHP: 7.4 7 Stable tag: 1.2. 47 Stable tag: 1.2.6 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 274 274 == Changelog == 275 275 276 = 1.2.6 = 277 * IMPROVED: Minor bug fixes and performance improvements. 278 276 279 = 1.2.4 = 277 280 * IMPROVED: Minor bug fixes and performance improvements.
Note: See TracChangeset
for help on using the changeset viewer.