Changeset 3438914
- Timestamp:
- 01/13/2026 06:29:46 PM (3 months ago)
- Location:
- rss-to-post-generator
- Files:
-
- 4 edited
- 1 copied
-
tags/1.1.2 (copied) (copied from rss-to-post-generator/trunk)
-
tags/1.1.2/readme.txt (modified) (4 diffs)
-
tags/1.1.2/rss2post.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (4 diffs)
-
trunk/rss2post.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
rss-to-post-generator/tags/1.1.2/readme.txt
r3438908 r3438914 4 4 Requires at least: 5.6 5 5 Tested up to: 6.8 6 Stable tag: 1. 0.86 Stable tag: 1.1.2 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 41 41 42 42 * **Unlimited Article Generation**: No credit limits 43 * **Automated Posting**: Schedule postsevery 12 hours43 * **Automated Posting**: Schedule automatic posting every 12 hours 44 44 * **Priority Support**: Get help when you need it 45 45 * **Advanced Image Options**: Full Pexels integration … … 138 138 == Changelog == 139 139 140 = 1.1.1 = 141 * Updating plugin version and minor improvements 142 143 = 1.1.0 = 144 * Updating plugin version 145 146 = 1.0.9 = 147 * Fixing critical php error. 140 = 1.1.2 = 141 * Resolved PHP fatal error due to function redeclaration. 142 * Updated plugin version and minor improvements. 148 143 149 144 = 1.0.8 = … … 208 203 == Upgrade Notice == 209 204 205 = 1.1.1 = 206 This update includes general plugin improvements and version increment. 207 208 = 1.0.8 = 209 This update includes general plugin improvements and version increment. 210 210 211 = 1.0.7 = 211 212 CRITICAL UPDATE: Fixes major bugs affecting automated posting reliability. If you experienced issues with "Run Now" not working, disable/re-enable not posting content, or feeds stopping after the first cycle, this update resolves all these problems. Highly recommended for all Pro/Lifetime users. 212 213 = 1.0.8 =214 This update includes general plugin improvements and version increment.215 213 216 214 = 1.0.6 = -
rss-to-post-generator/tags/1.1.2/rss2post.php
r3438908 r3438914 3 3 * Plugin Name: RSS to Post Generator 4 4 * Description: Generate blog posts from RSS feeds using AI content generation 5 * Version: 1.1. 15 * Version: 1.1.2 6 6 * Author: Samuel Bezerra Gomes 7 7 * License: GPL v2 or later … … 15 15 16 16 // Define plugin constants 17 define('RSS2POST_VERSION', '1.1. 1');17 define('RSS2POST_VERSION', '1.1.2'); 18 18 define('RSS2POST_PLUGIN_DIR', plugin_dir_path(__FILE__)); 19 19 define('RSS2POST_PLUGIN_URL', plugin_dir_url(__FILE__)); … … 36 36 // Activation hook 37 37 register_activation_hook(__FILE__, 'rss2post_activate'); 38 function rss2post_activate() { 39 $default_settings = array( 40 'backend_url' => RSS2POST_BACKEND_URL, 41 'api_timeout' => 180, 42 'user_tier' => 'free', // Default to free tier 43 'user_credits' => 10, // Default credits for free tier 44 'automated_posting_enabled' => false, 45 'automated_rss_feeds' => array(), 46 'last_processed_item_guids' => array(), 47 'attach_images_automated' => true, // Default for automated image attachment 48 'content_language' => 'en', // Default language 49 'rss2post_cron_username' => '', // User should set these manually for security 50 'rss2post_cron_app_password' => '', 51 'convert_to_webp' => true, // Default to enable WebP conversion 52 'user_openai_key' => '', // User's OpenAI API key for lifetime tier 53 'user_pexels_key' => '' // User's Pexels API key for lifetime tier 54 ); 55 56 $current_settings = get_option('rss2post_settings', array()); 57 58 // Merge default settings with current settings, giving precedence to current settings 59 // This ensures existing settings are not overwritten, but new ones are added. 60 $settings_to_save = wp_parse_args($current_settings, $default_settings); 38 if (!function_exists('rss2post_activate')) { 39 function rss2post_activate() { 40 $default_settings = array( 41 'backend_url' => RSS2POST_BACKEND_URL, 42 'api_timeout' => 180, 43 'user_tier' => 'free', // Default to free tier 44 'user_credits' => 10, // Default credits for free tier 45 'automated_posting_enabled' => false, 46 'automated_rss_feeds' => array(), 47 'last_processed_item_guids' => array(), 48 'attach_images_automated' => true, // Default for automated image attachment 49 'content_language' => 'en', // Default language 50 'rss2post_cron_username' => '', // User should set these manually for security 51 'rss2post_cron_app_password' => '', 52 'convert_to_webp' => true, // Default to enable WebP conversion 53 'user_openai_key' => '', // User's OpenAI API key for lifetime tier 54 'user_pexels_key' => '' // User's Pexels API key for lifetime tier 55 ); 56 57 $current_settings = get_option('rss2post_settings', array()); 58 59 // Merge default settings with current settings, giving precedence to current settings 60 // This ensures existing settings are not overwritten, but new ones are added. 61 $settings_to_save = wp_parse_args($current_settings, $default_settings); 61 62 62 // Ensure specific defaults if they are critical and might be missing 63 if (!isset($settings_to_save['user_tier'])) { 64 $settings_to_save['user_tier'] = 'free'; 63 // Ensure specific defaults if they are critical and might be missing 64 if (!isset($settings_to_save['user_tier'])) { 65 $settings_to_save['user_tier'] = 'free'; 66 } 67 if ($settings_to_save['user_tier'] === 'free' && (!isset($settings_to_save['user_credits']) || $settings_to_save['user_credits'] === 0)) { 68 $settings_to_save['user_credits'] = 10; 69 } elseif ($settings_to_save['user_tier'] === 'pro') { 70 // Pro users might not use the 'user_credits' field in the same way, or it could be set to a high/infinite number 71 // For now, let's ensure it exists but perhaps isn't strictly enforced like free tier. 72 // Or, remove it if it's confusing for pro: unset($settings_to_save['user_credits']); 73 } elseif ($settings_to_save['user_tier'] === 'lifetime') { 74 // Lifetime users don't need credits - they have unlimited access with their own API keys 75 unset($settings_to_save['user_credits']); 76 } 77 78 update_option('rss2post_settings', $settings_to_save); 65 79 } 66 if ($settings_to_save['user_tier'] === 'free' && (!isset($settings_to_save['user_credits']) || $settings_to_save['user_credits'] === 0)) {67 $settings_to_save['user_credits'] = 10;68 } elseif ($settings_to_save['user_tier'] === 'pro') {69 // Pro users might not use the 'user_credits' field in the same way, or it could be set to a high/infinite number70 // For now, let's ensure it exists but perhaps isn't strictly enforced like free tier.71 // Or, remove it if it's confusing for pro: unset($settings_to_save['user_credits']);72 } elseif ($settings_to_save['user_tier'] === 'lifetime') {73 // Lifetime users don't need credits - they have unlimited access with their own API keys74 unset($settings_to_save['user_credits']);75 }76 77 update_option('rss2post_settings', $settings_to_save);78 80 } 79 81 -
rss-to-post-generator/trunk/readme.txt
r3438908 r3438914 4 4 Requires at least: 5.6 5 5 Tested up to: 6.8 6 Stable tag: 1. 0.86 Stable tag: 1.1.2 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 41 41 42 42 * **Unlimited Article Generation**: No credit limits 43 * **Automated Posting**: Schedule postsevery 12 hours43 * **Automated Posting**: Schedule automatic posting every 12 hours 44 44 * **Priority Support**: Get help when you need it 45 45 * **Advanced Image Options**: Full Pexels integration … … 138 138 == Changelog == 139 139 140 = 1.1.1 = 141 * Updating plugin version and minor improvements 142 143 = 1.1.0 = 144 * Updating plugin version 145 146 = 1.0.9 = 147 * Fixing critical php error. 140 = 1.1.2 = 141 * Resolved PHP fatal error due to function redeclaration. 142 * Updated plugin version and minor improvements. 148 143 149 144 = 1.0.8 = … … 208 203 == Upgrade Notice == 209 204 205 = 1.1.1 = 206 This update includes general plugin improvements and version increment. 207 208 = 1.0.8 = 209 This update includes general plugin improvements and version increment. 210 210 211 = 1.0.7 = 211 212 CRITICAL UPDATE: Fixes major bugs affecting automated posting reliability. If you experienced issues with "Run Now" not working, disable/re-enable not posting content, or feeds stopping after the first cycle, this update resolves all these problems. Highly recommended for all Pro/Lifetime users. 212 213 = 1.0.8 =214 This update includes general plugin improvements and version increment.215 213 216 214 = 1.0.6 = -
rss-to-post-generator/trunk/rss2post.php
r3438908 r3438914 3 3 * Plugin Name: RSS to Post Generator 4 4 * Description: Generate blog posts from RSS feeds using AI content generation 5 * Version: 1.1. 15 * Version: 1.1.2 6 6 * Author: Samuel Bezerra Gomes 7 7 * License: GPL v2 or later … … 15 15 16 16 // Define plugin constants 17 define('RSS2POST_VERSION', '1.1. 1');17 define('RSS2POST_VERSION', '1.1.2'); 18 18 define('RSS2POST_PLUGIN_DIR', plugin_dir_path(__FILE__)); 19 19 define('RSS2POST_PLUGIN_URL', plugin_dir_url(__FILE__)); … … 36 36 // Activation hook 37 37 register_activation_hook(__FILE__, 'rss2post_activate'); 38 function rss2post_activate() { 39 $default_settings = array( 40 'backend_url' => RSS2POST_BACKEND_URL, 41 'api_timeout' => 180, 42 'user_tier' => 'free', // Default to free tier 43 'user_credits' => 10, // Default credits for free tier 44 'automated_posting_enabled' => false, 45 'automated_rss_feeds' => array(), 46 'last_processed_item_guids' => array(), 47 'attach_images_automated' => true, // Default for automated image attachment 48 'content_language' => 'en', // Default language 49 'rss2post_cron_username' => '', // User should set these manually for security 50 'rss2post_cron_app_password' => '', 51 'convert_to_webp' => true, // Default to enable WebP conversion 52 'user_openai_key' => '', // User's OpenAI API key for lifetime tier 53 'user_pexels_key' => '' // User's Pexels API key for lifetime tier 54 ); 55 56 $current_settings = get_option('rss2post_settings', array()); 57 58 // Merge default settings with current settings, giving precedence to current settings 59 // This ensures existing settings are not overwritten, but new ones are added. 60 $settings_to_save = wp_parse_args($current_settings, $default_settings); 38 if (!function_exists('rss2post_activate')) { 39 function rss2post_activate() { 40 $default_settings = array( 41 'backend_url' => RSS2POST_BACKEND_URL, 42 'api_timeout' => 180, 43 'user_tier' => 'free', // Default to free tier 44 'user_credits' => 10, // Default credits for free tier 45 'automated_posting_enabled' => false, 46 'automated_rss_feeds' => array(), 47 'last_processed_item_guids' => array(), 48 'attach_images_automated' => true, // Default for automated image attachment 49 'content_language' => 'en', // Default language 50 'rss2post_cron_username' => '', // User should set these manually for security 51 'rss2post_cron_app_password' => '', 52 'convert_to_webp' => true, // Default to enable WebP conversion 53 'user_openai_key' => '', // User's OpenAI API key for lifetime tier 54 'user_pexels_key' => '' // User's Pexels API key for lifetime tier 55 ); 56 57 $current_settings = get_option('rss2post_settings', array()); 58 59 // Merge default settings with current settings, giving precedence to current settings 60 // This ensures existing settings are not overwritten, but new ones are added. 61 $settings_to_save = wp_parse_args($current_settings, $default_settings); 61 62 62 // Ensure specific defaults if they are critical and might be missing 63 if (!isset($settings_to_save['user_tier'])) { 64 $settings_to_save['user_tier'] = 'free'; 63 // Ensure specific defaults if they are critical and might be missing 64 if (!isset($settings_to_save['user_tier'])) { 65 $settings_to_save['user_tier'] = 'free'; 66 } 67 if ($settings_to_save['user_tier'] === 'free' && (!isset($settings_to_save['user_credits']) || $settings_to_save['user_credits'] === 0)) { 68 $settings_to_save['user_credits'] = 10; 69 } elseif ($settings_to_save['user_tier'] === 'pro') { 70 // Pro users might not use the 'user_credits' field in the same way, or it could be set to a high/infinite number 71 // For now, let's ensure it exists but perhaps isn't strictly enforced like free tier. 72 // Or, remove it if it's confusing for pro: unset($settings_to_save['user_credits']); 73 } elseif ($settings_to_save['user_tier'] === 'lifetime') { 74 // Lifetime users don't need credits - they have unlimited access with their own API keys 75 unset($settings_to_save['user_credits']); 76 } 77 78 update_option('rss2post_settings', $settings_to_save); 65 79 } 66 if ($settings_to_save['user_tier'] === 'free' && (!isset($settings_to_save['user_credits']) || $settings_to_save['user_credits'] === 0)) {67 $settings_to_save['user_credits'] = 10;68 } elseif ($settings_to_save['user_tier'] === 'pro') {69 // Pro users might not use the 'user_credits' field in the same way, or it could be set to a high/infinite number70 // For now, let's ensure it exists but perhaps isn't strictly enforced like free tier.71 // Or, remove it if it's confusing for pro: unset($settings_to_save['user_credits']);72 } elseif ($settings_to_save['user_tier'] === 'lifetime') {73 // Lifetime users don't need credits - they have unlimited access with their own API keys74 unset($settings_to_save['user_credits']);75 }76 77 update_option('rss2post_settings', $settings_to_save);78 80 } 79 81
Note: See TracChangeset
for help on using the changeset viewer.