Changeset 3457521
- Timestamp:
- 02/09/2026 10:28:55 PM (8 weeks ago)
- Location:
- brambles-ai/trunk
- Files:
-
- 2 edited
-
brambles-ai.php (modified) (4 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
brambles-ai/trunk/brambles-ai.php
r3387307 r3457521 4 4 * Plugin URI: https://www.brambles.ai/wordpress-plugin 5 5 * Description: Affiliate AI shopping chatbot that monetizes content with conversational commerce for publishers. 6 * Version: 0.2. 16 * Version: 0.2.2 7 7 * Author: Brambles.ai 8 8 * Author URI: https://www.brambles.ai … … 22 22 23 23 // Define plugin constants 24 define( 'BRAMBLES_AI_VERSION', '0.2. 1' );24 define( 'BRAMBLES_AI_VERSION', '0.2.2' ); 25 25 define( 'BRAMBLES_AI_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); 26 26 define( 'BRAMBLES_AI_PLUGIN_PATH', plugin_dir_path( __FILE__ ) ); … … 306 306 public function admin_init() { 307 307 register_setting( 'brambles_ai_settings', 'brambles_ai_cuid', array( 'sanitize_callback' => 'sanitize_text_field' ) ); 308 register_setting( 'brambles_ai_settings', 'brambles_ai_api_base_url', array( 'sanitize_callback' => 'esc_url_raw' ) ); 308 // Note: brambles_ai_api_base_url intentionally NOT registered as a setting. 309 // It has no form field, so register_setting would wipe it to '' on form save. 309 310 register_setting( 'brambles_ai_settings', 'brambles_ai_auto_inject', array( 'sanitize_callback' => 'absint' ) ); 310 311 register_setting( 'brambles_ai_settings', 'brambles_ai_position', array( 'sanitize_callback' => 'sanitize_text_field' ) ); … … 1048 1049 // Use your existing widget base URL + new stripe connect endpoint 1049 1050 $api_base_url = get_option( 'brambles_ai_api_base_url', BRAMBLES_AI_WIDGET_BASE_URL ); 1051 if ( empty( $api_base_url ) ) { 1052 $api_base_url = BRAMBLES_AI_WIDGET_BASE_URL; 1053 } 1050 1054 $api_base_url = rtrim( $api_base_url, '/' ); 1051 1055 $endpoint = trailingslashit( $api_base_url ) . 'api/stripe/connect'; -
brambles-ai/trunk/readme.txt
r3387307 r3457521 6 6 Tested up to: 6.8 7 7 Requires PHP: 7.4 8 Stable tag: 0.2. 18 Stable tag: 0.2.2 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 155 155 == Changelog == 156 156 157 = 0.2.2 = 158 * FIX: Resolved "Network error: A valid URL was not provided" when connecting Stripe after saving widget customizations 159 * FIX: Prevented internal API base URL setting from being inadvertently cleared on settings save 160 * SECURITY: Added defensive URL validation for Stripe Connect endpoint 161 157 162 = 0.2.1 = 158 163 * DOCS: Enhanced readme with SEO optimization and clearer monetization guidance … … 173 178 == Upgrade Notice == 174 179 180 = 0.2.2 = 181 Bug fix: Fixes Stripe Connect error that could occur after saving widget customizations. Recommended update for all users. 182 175 183 = 0.2.1 = 176 184 Enhanced documentation and SEO optimization. Clearer setup instructions for affiliate monetization and Stripe payouts.
Note: See TracChangeset
for help on using the changeset viewer.