Changeset 3320369
- Timestamp:
- 07/01/2025 07:50:28 AM (8 months ago)
- Location:
- widget-for-eventbrite-api
- Files:
-
- 16 edited
- 1 copied
-
tags/6.3.9 (copied) (copied from widget-for-eventbrite-api/trunk)
-
tags/6.3.9/admin/class-admin-settings.php (modified) (2 diffs)
-
tags/6.3.9/blocks/class-blocks.php (modified) (1 diff)
-
tags/6.3.9/changelog.txt (modified) (1 diff)
-
tags/6.3.9/includes/class-core.php (modified) (1 diff)
-
tags/6.3.9/includes/class-eventbrite-manager.php (modified) (1 diff)
-
tags/6.3.9/includes/vendor/composer/installed.php (modified) (2 diffs)
-
tags/6.3.9/readme.txt (modified) (2 diffs)
-
tags/6.3.9/widget-for-eventbrite-api.php (modified) (2 diffs)
-
trunk/admin/class-admin-settings.php (modified) (2 diffs)
-
trunk/blocks/class-blocks.php (modified) (1 diff)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/includes/class-core.php (modified) (1 diff)
-
trunk/includes/class-eventbrite-manager.php (modified) (1 diff)
-
trunk/includes/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/widget-for-eventbrite-api.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
widget-for-eventbrite-api/tags/6.3.9/admin/class-admin-settings.php
r3273977 r3320369 440 440 $options = get_option( 'widget-for-eventbrite-api-settings', array( 441 441 'key' => array(array( 442 'key' => '',443 'label' ,442 'key' => '', 443 'label' => __( 'API Key 1', 'widget-for-eventbrite-api' ), 444 444 )), 445 445 'webhook' => '', 446 446 ) ); 447 $api_keys = ( is_string( $options['key'] ) ? array(array( 448 'key' => $options['key'], 449 'label' => __( 'API Key 1', 'widget-for-eventbrite-api' ), 450 )) : $options['key'] ); 447 // Handle different formats of API key storage 448 if ( !isset( $options['key'] ) || empty( $options['key'] ) ) { 449 // No key set yet 450 $api_keys = array(array( 451 'key' => '', 452 'label' => __( 'API Key 1', 'widget-for-eventbrite-api' ), 453 )); 454 } elseif ( is_string( $options['key'] ) ) { 455 // Old format: plain string 456 $api_keys = array(array( 457 'key' => $options['key'], 458 'label' => __( 'API Key 1', 'widget-for-eventbrite-api' ), 459 )); 460 } elseif ( is_array( $options['key'] ) && isset( $options['key']['key'] ) ) { 461 // Single array format (not nested) 462 $api_keys = array($options['key']); 463 } elseif ( is_array( $options['key'] ) && isset( $options['key'][0] ) ) { 464 // New format: array of arrays 465 $api_keys = $options['key']; 466 } else { 467 // Fallback for any other format 468 $api_keys = array(array( 469 'key' => '', 470 'label' => __( 'API Key 1', 'widget-for-eventbrite-api' ), 471 )); 472 } 451 473 $account_type = ( isset( $options['account_type'] ) ? $options['account_type'] : 'standard' ); 452 474 ?> … … 670 692 $options = get_option( 'widget-for-eventbrite-api-settings' ); 671 693 if ( isset( $settings['key'] ) ) { 672 if ( empty( $settings['key'] || empty( $options['key'] )) ) {694 if ( empty( $settings['key'] ) || empty( $options['key'] ) ) { 673 695 add_settings_error( 674 696 'wfea-api-key', -
widget-for-eventbrite-api/tags/6.3.9/blocks/class-blocks.php
r3143806 r3320369 63 63 'register_block_type_args', 64 64 function ( $args, $name ) { 65 if ( 'widget-for-eventbrite-api/display- eventbrite-events' !== $name ) {65 if ( 'widget-for-eventbrite-api/display-' !== $name ) { 66 66 return $args; 67 67 } -
widget-for-eventbrite-api/tags/6.3.9/changelog.txt
r3296809 r3320369 1 = 6.3.9 = 2 * Fix PHP syntax errors in API key settings that could cause fatal errors 3 * Add robust handling for various API key storage formats during migration 4 * Fix incorrect logical operator syntax in settings validation 5 6 = 6.3.8 = 7 * Fix issue with long description modal title display (Pro only) 8 * Improve trial mode messaging to clarify payment status and trial period 9 10 = 6.3.7 = 11 * Fix TypeError when migrating API key settings from pre-6.0 versions 12 * Fix broken API key format conversion that could leave settings in invalid state 13 14 = 6.3.6 = 15 Fix issue with long_description_modal ( Pro Only ) 16 1 17 = 6.3.5 = 2 18 * re-enable cache -
widget-for-eventbrite-api/tags/6.3.9/includes/class-core.php
r3250726 r3320369 92 92 $key = get_option( 'widget-for-eventbrite-api-settings-api' ); 93 93 if ( false !== $key ) { 94 $options['key'] = $key['key']; 94 // Convert old string API key to new array format 95 $options['key'] = array(array( 96 'key' => $key['key'], 97 'label' => 'API Key 1', 98 )); 95 99 update_option( 'widget-for-eventbrite-api-settings', $options ); 96 100 delete_option( 'widget-for-eventbrite-api-settings-api' ); 97 101 } 102 } 103 // Fix for users who already have broken string format from previous migration 104 if ( !empty( $options ) && is_array( $options ) && isset( $options['key'] ) && is_string( $options['key'] ) ) { 105 // Convert string API key to new array format 106 $api_key_value = $options['key']; 107 $options['key'] = array(array( 108 'key' => $api_key_value, 109 'label' => 'API Key 1', 110 )); 111 update_option( 'widget-for-eventbrite-api-settings', $options ); 98 112 } 99 113 $this->define_component_hooks(); -
widget-for-eventbrite-api/tags/6.3.9/includes/class-eventbrite-manager.php
r3296809 r3320369 186 186 } 187 187 // Return a cached result if we have one. 188 // $force = true; 188 // if environment variable WFEA_DEV_NOCACHE is defined and true, force API request 189 if ( defined( 'WFEA_DEV_NOCACHE' ) && true === WFEA_DEV_NOCACHE ) { 190 $force = true; 191 } 189 192 $repeat = (int) apply_filters( 'wfea_eventbrite_cache_expiry', DAY_IN_SECONDS ); 190 193 if ( $repeat <= 60 || $force ) { -
widget-for-eventbrite-api/tags/6.3.9/includes/vendor/composer/installed.php
r3296788 r3320369 4 4 'pretty_version' => 'dev-master', 5 5 'version' => 'dev-master', 6 'reference' => ' c510e90bd01f86b9e735b9d9184ed859c80ae8f6',6 'reference' => 'a7d27dd301e176d61296c6e1fa554eb97fbf8fca', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../../', … … 72 72 'pretty_version' => 'dev-master', 73 73 'version' => 'dev-master', 74 'reference' => ' c510e90bd01f86b9e735b9d9184ed859c80ae8f6',74 'reference' => 'a7d27dd301e176d61296c6e1fa554eb97fbf8fca', 75 75 'type' => 'wordpress-plugin', 76 76 'install_path' => __DIR__ . '/../../../', -
widget-for-eventbrite-api/tags/6.3.9/readme.txt
r3296809 r3320369 3 3 Tags: eventbrite, widget, events, eventbrite widget, eventbrite shortcode 4 4 Tested up to: 6.8 5 Stable tag: 6.3. 55 Stable tag: 6.3.9 6 6 Requires PHP: 7.4 7 7 License: GPL-2.0-or-later … … 198 198 199 199 == Upgrade Notice == 200 = 6.3.9 = 201 Critical fix for PHP fatal errors in API key settings page. All users on version 6.3.7 should update immediately. 202 200 203 == Changelog == 201 204 -
widget-for-eventbrite-api/tags/6.3.9/widget-for-eventbrite-api.php
r3296809 r3320369 7 7 * Plugin URI: https://fullworksplugins.com/products/widget-for-eventbrite/ 8 8 * Description: Easily display Eventbrite events on your WordPress site 9 * Version: 6.3. 59 * Version: 6.3.9 10 10 * Requires at least: 5.6 11 11 * Requires PHP: 7.4 … … 42 42 define( 'WIDGET_FOR_EVENTBRITE_API_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); 43 43 define( 'WIDGET_FOR_EVENTBRITE_API_PLUGINS_TOP_DIR', plugin_dir_path( __DIR__ ) ); 44 define( 'WIDGET_FOR_EVENTBRITE_API_PLUGIN_VERSION', '6.3. 5' );44 define( 'WIDGET_FOR_EVENTBRITE_API_PLUGIN_VERSION', '6.3.9' ); 45 45 // Include the plugin autoloader, so we can dynamically include the classes. 46 46 require_once WIDGET_FOR_EVENTBRITE_API_PLUGIN_DIR . 'includes/vendor/autoload.php'; -
widget-for-eventbrite-api/trunk/admin/class-admin-settings.php
r3273977 r3320369 440 440 $options = get_option( 'widget-for-eventbrite-api-settings', array( 441 441 'key' => array(array( 442 'key' => '',443 'label' ,442 'key' => '', 443 'label' => __( 'API Key 1', 'widget-for-eventbrite-api' ), 444 444 )), 445 445 'webhook' => '', 446 446 ) ); 447 $api_keys = ( is_string( $options['key'] ) ? array(array( 448 'key' => $options['key'], 449 'label' => __( 'API Key 1', 'widget-for-eventbrite-api' ), 450 )) : $options['key'] ); 447 // Handle different formats of API key storage 448 if ( !isset( $options['key'] ) || empty( $options['key'] ) ) { 449 // No key set yet 450 $api_keys = array(array( 451 'key' => '', 452 'label' => __( 'API Key 1', 'widget-for-eventbrite-api' ), 453 )); 454 } elseif ( is_string( $options['key'] ) ) { 455 // Old format: plain string 456 $api_keys = array(array( 457 'key' => $options['key'], 458 'label' => __( 'API Key 1', 'widget-for-eventbrite-api' ), 459 )); 460 } elseif ( is_array( $options['key'] ) && isset( $options['key']['key'] ) ) { 461 // Single array format (not nested) 462 $api_keys = array($options['key']); 463 } elseif ( is_array( $options['key'] ) && isset( $options['key'][0] ) ) { 464 // New format: array of arrays 465 $api_keys = $options['key']; 466 } else { 467 // Fallback for any other format 468 $api_keys = array(array( 469 'key' => '', 470 'label' => __( 'API Key 1', 'widget-for-eventbrite-api' ), 471 )); 472 } 451 473 $account_type = ( isset( $options['account_type'] ) ? $options['account_type'] : 'standard' ); 452 474 ?> … … 670 692 $options = get_option( 'widget-for-eventbrite-api-settings' ); 671 693 if ( isset( $settings['key'] ) ) { 672 if ( empty( $settings['key'] || empty( $options['key'] )) ) {694 if ( empty( $settings['key'] ) || empty( $options['key'] ) ) { 673 695 add_settings_error( 674 696 'wfea-api-key', -
widget-for-eventbrite-api/trunk/blocks/class-blocks.php
r3143806 r3320369 63 63 'register_block_type_args', 64 64 function ( $args, $name ) { 65 if ( 'widget-for-eventbrite-api/display- eventbrite-events' !== $name ) {65 if ( 'widget-for-eventbrite-api/display-' !== $name ) { 66 66 return $args; 67 67 } -
widget-for-eventbrite-api/trunk/changelog.txt
r3296809 r3320369 1 = 6.3.9 = 2 * Fix PHP syntax errors in API key settings that could cause fatal errors 3 * Add robust handling for various API key storage formats during migration 4 * Fix incorrect logical operator syntax in settings validation 5 6 = 6.3.8 = 7 * Fix issue with long description modal title display (Pro only) 8 * Improve trial mode messaging to clarify payment status and trial period 9 10 = 6.3.7 = 11 * Fix TypeError when migrating API key settings from pre-6.0 versions 12 * Fix broken API key format conversion that could leave settings in invalid state 13 14 = 6.3.6 = 15 Fix issue with long_description_modal ( Pro Only ) 16 1 17 = 6.3.5 = 2 18 * re-enable cache -
widget-for-eventbrite-api/trunk/includes/class-core.php
r3250726 r3320369 92 92 $key = get_option( 'widget-for-eventbrite-api-settings-api' ); 93 93 if ( false !== $key ) { 94 $options['key'] = $key['key']; 94 // Convert old string API key to new array format 95 $options['key'] = array(array( 96 'key' => $key['key'], 97 'label' => 'API Key 1', 98 )); 95 99 update_option( 'widget-for-eventbrite-api-settings', $options ); 96 100 delete_option( 'widget-for-eventbrite-api-settings-api' ); 97 101 } 102 } 103 // Fix for users who already have broken string format from previous migration 104 if ( !empty( $options ) && is_array( $options ) && isset( $options['key'] ) && is_string( $options['key'] ) ) { 105 // Convert string API key to new array format 106 $api_key_value = $options['key']; 107 $options['key'] = array(array( 108 'key' => $api_key_value, 109 'label' => 'API Key 1', 110 )); 111 update_option( 'widget-for-eventbrite-api-settings', $options ); 98 112 } 99 113 $this->define_component_hooks(); -
widget-for-eventbrite-api/trunk/includes/class-eventbrite-manager.php
r3296809 r3320369 186 186 } 187 187 // Return a cached result if we have one. 188 // $force = true; 188 // if environment variable WFEA_DEV_NOCACHE is defined and true, force API request 189 if ( defined( 'WFEA_DEV_NOCACHE' ) && true === WFEA_DEV_NOCACHE ) { 190 $force = true; 191 } 189 192 $repeat = (int) apply_filters( 'wfea_eventbrite_cache_expiry', DAY_IN_SECONDS ); 190 193 if ( $repeat <= 60 || $force ) { -
widget-for-eventbrite-api/trunk/includes/vendor/composer/installed.php
r3296788 r3320369 4 4 'pretty_version' => 'dev-master', 5 5 'version' => 'dev-master', 6 'reference' => ' c510e90bd01f86b9e735b9d9184ed859c80ae8f6',6 'reference' => 'a7d27dd301e176d61296c6e1fa554eb97fbf8fca', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../../', … … 72 72 'pretty_version' => 'dev-master', 73 73 'version' => 'dev-master', 74 'reference' => ' c510e90bd01f86b9e735b9d9184ed859c80ae8f6',74 'reference' => 'a7d27dd301e176d61296c6e1fa554eb97fbf8fca', 75 75 'type' => 'wordpress-plugin', 76 76 'install_path' => __DIR__ . '/../../../', -
widget-for-eventbrite-api/trunk/readme.txt
r3296809 r3320369 3 3 Tags: eventbrite, widget, events, eventbrite widget, eventbrite shortcode 4 4 Tested up to: 6.8 5 Stable tag: 6.3. 55 Stable tag: 6.3.9 6 6 Requires PHP: 7.4 7 7 License: GPL-2.0-or-later … … 198 198 199 199 == Upgrade Notice == 200 = 6.3.9 = 201 Critical fix for PHP fatal errors in API key settings page. All users on version 6.3.7 should update immediately. 202 200 203 == Changelog == 201 204 -
widget-for-eventbrite-api/trunk/widget-for-eventbrite-api.php
r3296809 r3320369 7 7 * Plugin URI: https://fullworksplugins.com/products/widget-for-eventbrite/ 8 8 * Description: Easily display Eventbrite events on your WordPress site 9 * Version: 6.3. 59 * Version: 6.3.9 10 10 * Requires at least: 5.6 11 11 * Requires PHP: 7.4 … … 42 42 define( 'WIDGET_FOR_EVENTBRITE_API_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); 43 43 define( 'WIDGET_FOR_EVENTBRITE_API_PLUGINS_TOP_DIR', plugin_dir_path( __DIR__ ) ); 44 define( 'WIDGET_FOR_EVENTBRITE_API_PLUGIN_VERSION', '6.3. 5' );44 define( 'WIDGET_FOR_EVENTBRITE_API_PLUGIN_VERSION', '6.3.9' ); 45 45 // Include the plugin autoloader, so we can dynamically include the classes. 46 46 require_once WIDGET_FOR_EVENTBRITE_API_PLUGIN_DIR . 'includes/vendor/autoload.php';
Note: See TracChangeset
for help on using the changeset viewer.