Plugin Directory

Changeset 3320369


Ignore:
Timestamp:
07/01/2025 07:50:28 AM (8 months ago)
Author:
fullworks
Message:

Adding version 6.3.9

Location:
widget-for-eventbrite-api
Files:
16 edited
1 copied

Legend:

Unmodified
Added
Removed
  • widget-for-eventbrite-api/tags/6.3.9/admin/class-admin-settings.php

    r3273977 r3320369  
    440440        $options = get_option( 'widget-for-eventbrite-api-settings', array(
    441441            'key'     => array(array(
    442                 'key' => '',
    443                 'label',
     442                'key'   => '',
     443                'label' => __( 'API Key 1', 'widget-for-eventbrite-api' ),
    444444            )),
    445445            'webhook' => '',
    446446        ) );
    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        }
    451473        $account_type = ( isset( $options['account_type'] ) ? $options['account_type'] : 'standard' );
    452474        ?>
     
    670692        $options = get_option( 'widget-for-eventbrite-api-settings' );
    671693        if ( isset( $settings['key'] ) ) {
    672             if ( empty( $settings['key'] || empty( $options['key'] ) ) ) {
     694            if ( empty( $settings['key'] ) || empty( $options['key'] ) ) {
    673695                add_settings_error(
    674696                    'wfea-api-key',
  • widget-for-eventbrite-api/tags/6.3.9/blocks/class-blocks.php

    r3143806 r3320369  
    6363                'register_block_type_args',
    6464                function ( $args, $name ) {
    65                     if ( 'widget-for-eventbrite-api/display-eventbrite-events' !== $name ) {
     65                    if ( 'widget-for-eventbrite-api/display-' !== $name ) {
    6666                        return $args;
    6767                    }
  • 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 =
     15Fix issue with long_description_modal ( Pro Only )
     16
    117= 6.3.5 =
    218* re-enable cache
  • widget-for-eventbrite-api/tags/6.3.9/includes/class-core.php

    r3250726 r3320369  
    9292            $key = get_option( 'widget-for-eventbrite-api-settings-api' );
    9393            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                ));
    9599                update_option( 'widget-for-eventbrite-api-settings', $options );
    96100                delete_option( 'widget-for-eventbrite-api-settings-api' );
    97101            }
     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 );
    98112        }
    99113        $this->define_component_hooks();
  • widget-for-eventbrite-api/tags/6.3.9/includes/class-eventbrite-manager.php

    r3296809 r3320369  
    186186        }
    187187        // 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        }
    189192        $repeat = (int) apply_filters( 'wfea_eventbrite_cache_expiry', DAY_IN_SECONDS );
    190193        if ( $repeat <= 60 || $force ) {
  • widget-for-eventbrite-api/tags/6.3.9/includes/vendor/composer/installed.php

    r3296788 r3320369  
    44        'pretty_version' => 'dev-master',
    55        'version' => 'dev-master',
    6         'reference' => 'c510e90bd01f86b9e735b9d9184ed859c80ae8f6',
     6        'reference' => 'a7d27dd301e176d61296c6e1fa554eb97fbf8fca',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../../',
     
    7272            'pretty_version' => 'dev-master',
    7373            'version' => 'dev-master',
    74             'reference' => 'c510e90bd01f86b9e735b9d9184ed859c80ae8f6',
     74            'reference' => 'a7d27dd301e176d61296c6e1fa554eb97fbf8fca',
    7575            'type' => 'wordpress-plugin',
    7676            'install_path' => __DIR__ . '/../../../',
  • widget-for-eventbrite-api/tags/6.3.9/readme.txt

    r3296809 r3320369  
    33Tags: eventbrite, widget, events, eventbrite widget, eventbrite shortcode
    44Tested up to: 6.8
    5 Stable tag: 6.3.5
     5Stable tag: 6.3.9
    66Requires PHP: 7.4
    77License: GPL-2.0-or-later
     
    198198
    199199== Upgrade Notice ==
     200= 6.3.9 =
     201Critical fix for PHP fatal errors in API key settings page. All users on version 6.3.7 should update immediately.
     202
    200203== Changelog ==
    201204
  • widget-for-eventbrite-api/tags/6.3.9/widget-for-eventbrite-api.php

    r3296809 r3320369  
    77 * Plugin URI:        https://fullworksplugins.com/products/widget-for-eventbrite/
    88 * Description:       Easily display Eventbrite events on your WordPress site
    9  * Version:           6.3.5
     9 * Version:           6.3.9
    1010 * Requires at least: 5.6
    1111 * Requires PHP:      7.4
     
    4242define( 'WIDGET_FOR_EVENTBRITE_API_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
    4343define( 'WIDGET_FOR_EVENTBRITE_API_PLUGINS_TOP_DIR', plugin_dir_path( __DIR__ ) );
    44 define( 'WIDGET_FOR_EVENTBRITE_API_PLUGIN_VERSION', '6.3.5' );
     44define( 'WIDGET_FOR_EVENTBRITE_API_PLUGIN_VERSION', '6.3.9' );
    4545// Include the plugin autoloader, so we can dynamically include the classes.
    4646require_once WIDGET_FOR_EVENTBRITE_API_PLUGIN_DIR . 'includes/vendor/autoload.php';
  • widget-for-eventbrite-api/trunk/admin/class-admin-settings.php

    r3273977 r3320369  
    440440        $options = get_option( 'widget-for-eventbrite-api-settings', array(
    441441            'key'     => array(array(
    442                 'key' => '',
    443                 'label',
     442                'key'   => '',
     443                'label' => __( 'API Key 1', 'widget-for-eventbrite-api' ),
    444444            )),
    445445            'webhook' => '',
    446446        ) );
    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        }
    451473        $account_type = ( isset( $options['account_type'] ) ? $options['account_type'] : 'standard' );
    452474        ?>
     
    670692        $options = get_option( 'widget-for-eventbrite-api-settings' );
    671693        if ( isset( $settings['key'] ) ) {
    672             if ( empty( $settings['key'] || empty( $options['key'] ) ) ) {
     694            if ( empty( $settings['key'] ) || empty( $options['key'] ) ) {
    673695                add_settings_error(
    674696                    'wfea-api-key',
  • widget-for-eventbrite-api/trunk/blocks/class-blocks.php

    r3143806 r3320369  
    6363                'register_block_type_args',
    6464                function ( $args, $name ) {
    65                     if ( 'widget-for-eventbrite-api/display-eventbrite-events' !== $name ) {
     65                    if ( 'widget-for-eventbrite-api/display-' !== $name ) {
    6666                        return $args;
    6767                    }
  • 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 =
     15Fix issue with long_description_modal ( Pro Only )
     16
    117= 6.3.5 =
    218* re-enable cache
  • widget-for-eventbrite-api/trunk/includes/class-core.php

    r3250726 r3320369  
    9292            $key = get_option( 'widget-for-eventbrite-api-settings-api' );
    9393            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                ));
    9599                update_option( 'widget-for-eventbrite-api-settings', $options );
    96100                delete_option( 'widget-for-eventbrite-api-settings-api' );
    97101            }
     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 );
    98112        }
    99113        $this->define_component_hooks();
  • widget-for-eventbrite-api/trunk/includes/class-eventbrite-manager.php

    r3296809 r3320369  
    186186        }
    187187        // 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        }
    189192        $repeat = (int) apply_filters( 'wfea_eventbrite_cache_expiry', DAY_IN_SECONDS );
    190193        if ( $repeat <= 60 || $force ) {
  • widget-for-eventbrite-api/trunk/includes/vendor/composer/installed.php

    r3296788 r3320369  
    44        'pretty_version' => 'dev-master',
    55        'version' => 'dev-master',
    6         'reference' => 'c510e90bd01f86b9e735b9d9184ed859c80ae8f6',
     6        'reference' => 'a7d27dd301e176d61296c6e1fa554eb97fbf8fca',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../../',
     
    7272            'pretty_version' => 'dev-master',
    7373            'version' => 'dev-master',
    74             'reference' => 'c510e90bd01f86b9e735b9d9184ed859c80ae8f6',
     74            'reference' => 'a7d27dd301e176d61296c6e1fa554eb97fbf8fca',
    7575            'type' => 'wordpress-plugin',
    7676            'install_path' => __DIR__ . '/../../../',
  • widget-for-eventbrite-api/trunk/readme.txt

    r3296809 r3320369  
    33Tags: eventbrite, widget, events, eventbrite widget, eventbrite shortcode
    44Tested up to: 6.8
    5 Stable tag: 6.3.5
     5Stable tag: 6.3.9
    66Requires PHP: 7.4
    77License: GPL-2.0-or-later
     
    198198
    199199== Upgrade Notice ==
     200= 6.3.9 =
     201Critical fix for PHP fatal errors in API key settings page. All users on version 6.3.7 should update immediately.
     202
    200203== Changelog ==
    201204
  • widget-for-eventbrite-api/trunk/widget-for-eventbrite-api.php

    r3296809 r3320369  
    77 * Plugin URI:        https://fullworksplugins.com/products/widget-for-eventbrite/
    88 * Description:       Easily display Eventbrite events on your WordPress site
    9  * Version:           6.3.5
     9 * Version:           6.3.9
    1010 * Requires at least: 5.6
    1111 * Requires PHP:      7.4
     
    4242define( 'WIDGET_FOR_EVENTBRITE_API_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
    4343define( 'WIDGET_FOR_EVENTBRITE_API_PLUGINS_TOP_DIR', plugin_dir_path( __DIR__ ) );
    44 define( 'WIDGET_FOR_EVENTBRITE_API_PLUGIN_VERSION', '6.3.5' );
     44define( 'WIDGET_FOR_EVENTBRITE_API_PLUGIN_VERSION', '6.3.9' );
    4545// Include the plugin autoloader, so we can dynamically include the classes.
    4646require_once WIDGET_FOR_EVENTBRITE_API_PLUGIN_DIR . 'includes/vendor/autoload.php';
Note: See TracChangeset for help on using the changeset viewer.