Plugin Directory

Changeset 3484337


Ignore:
Timestamp:
03/16/2026 11:48:08 PM (13 days ago)
Author:
holdbar
Message:

Update to version 1.8.4 from GitHub

Location:
understory
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • understory/tags/1.8.4/CLAUDE.md

    r3471141 r3484337  
    207207### Version Management
    208208
    209 Current version: 1.8.3 (defined in both `package.json` and `understory.php`)
     209Current version: 1.8.4 (defined in both `package.json` and `understory.php`)
  • understory/tags/1.8.4/includes/utils/class-experiences.php

    r3471141 r3484337  
    131131     */
    132132    private static function format_price( $amount, $currency, $language ) {
    133         $locale    = self::language_to_locale( $language );
    134         $currency  = strtoupper( $currency );
    135         $formatter = new \NumberFormatter( $locale, \NumberFormatter::CURRENCY );
    136         $formatter->setAttribute( \NumberFormatter::FRACTION_DIGITS, 0 );
    137         $formatted = $formatter->formatCurrency( (float) $amount, $currency );
    138         if ( false !== $formatted ) {
    139             return $formatted;
     133        $locale   = self::language_to_locale( $language );
     134        $currency = strtoupper( $currency );
     135
     136        if ( class_exists( '\NumberFormatter' ) ) {
     137            $formatter = new \NumberFormatter( $locale, \NumberFormatter::CURRENCY );
     138            $formatter->setAttribute( \NumberFormatter::FRACTION_DIGITS, 0 );
     139            $formatted = $formatter->formatCurrency( (float) $amount, $currency );
     140            if ( false !== $formatted ) {
     141                return $formatted;
     142            }
    140143        }
    141144
    142         return $currency . $amount;
     145        // Fallback: use a simple symbol map if NumberFormatter is unavailable
     146        $symbols = array(
     147            'EUR' => '€',
     148            'USD' => '$',
     149            'GBP' => '£',
     150            'DKK' => 'kr',
     151            'SEK' => 'kr',
     152            'NOK' => 'kr',
     153            'CHF' => 'CHF',
     154        );
     155        $symbol  = $symbols[ $currency ] ?? $currency;
     156        return $symbol . $amount;
    143157    }
    144158
  • understory/tags/1.8.4/package-lock.json

    r3470118 r3484337  
    11{
    22  "name": "understory",
    3   "version": "1.8.2",
     3  "version": "1.8.4",
    44  "lockfileVersion": 3,
    55  "requires": true,
     
    77    "": {
    88      "name": "understory",
    9       "version": "1.8.2",
     9      "version": "1.8.4",
    1010      "dependencies": {
    1111        "@mui/material": "6.4.2",
  • understory/tags/1.8.4/readme.txt

    r3471141 r3484337  
    44Requires at least: 5.0
    55Tested up to: 6.8
    6 Stable tag: 1.8.3
     6Stable tag: 1.8.4
    77Requires PHP: 7.0
    88License: GPLv2 or later
     
    7777
    7878== Changelog ==
     79
     80= 1.8.4 =
     81* Experiences widget: Fix a fatal error on servers without the PHP intl extension by adding a fallback for currency formatting.
    7982
    8083= 1.8.3 =
  • understory/tags/1.8.4/understory.php

    r3471141 r3484337  
    33Plugin Name: Understory
    44Description: Connect your WordPress site with Understory, to easily add your booking widget to posts and pages.
    5 Version: 1.8.3
     5Version: 1.8.4
    66Author: Understory
    77Text Domain: understory
     
    1818define('UNDERSTORY_PLUGIN_URL', plugin_dir_url(__FILE__));
    1919define('UNDERSTORY_PLUGIN_SLUG', 'understory');
    20 define('UNDERSTORY_PLUGIN_VERSION', '1.8.3');
     20define('UNDERSTORY_PLUGIN_VERSION', '1.8.4');
    2121define('UNDERSTORY_OPTION_KEY', 'understory_options');
    2222define('UNDERSTORY_NONCE_KEY', 'understory_nonce');
  • understory/trunk/CLAUDE.md

    r3471141 r3484337  
    207207### Version Management
    208208
    209 Current version: 1.8.3 (defined in both `package.json` and `understory.php`)
     209Current version: 1.8.4 (defined in both `package.json` and `understory.php`)
  • understory/trunk/includes/utils/class-experiences.php

    r3471141 r3484337  
    131131     */
    132132    private static function format_price( $amount, $currency, $language ) {
    133         $locale    = self::language_to_locale( $language );
    134         $currency  = strtoupper( $currency );
    135         $formatter = new \NumberFormatter( $locale, \NumberFormatter::CURRENCY );
    136         $formatter->setAttribute( \NumberFormatter::FRACTION_DIGITS, 0 );
    137         $formatted = $formatter->formatCurrency( (float) $amount, $currency );
    138         if ( false !== $formatted ) {
    139             return $formatted;
     133        $locale   = self::language_to_locale( $language );
     134        $currency = strtoupper( $currency );
     135
     136        if ( class_exists( '\NumberFormatter' ) ) {
     137            $formatter = new \NumberFormatter( $locale, \NumberFormatter::CURRENCY );
     138            $formatter->setAttribute( \NumberFormatter::FRACTION_DIGITS, 0 );
     139            $formatted = $formatter->formatCurrency( (float) $amount, $currency );
     140            if ( false !== $formatted ) {
     141                return $formatted;
     142            }
    140143        }
    141144
    142         return $currency . $amount;
     145        // Fallback: use a simple symbol map if NumberFormatter is unavailable
     146        $symbols = array(
     147            'EUR' => '€',
     148            'USD' => '$',
     149            'GBP' => '£',
     150            'DKK' => 'kr',
     151            'SEK' => 'kr',
     152            'NOK' => 'kr',
     153            'CHF' => 'CHF',
     154        );
     155        $symbol  = $symbols[ $currency ] ?? $currency;
     156        return $symbol . $amount;
    143157    }
    144158
  • understory/trunk/package-lock.json

    r3470118 r3484337  
    11{
    22  "name": "understory",
    3   "version": "1.8.2",
     3  "version": "1.8.4",
    44  "lockfileVersion": 3,
    55  "requires": true,
     
    77    "": {
    88      "name": "understory",
    9       "version": "1.8.2",
     9      "version": "1.8.4",
    1010      "dependencies": {
    1111        "@mui/material": "6.4.2",
  • understory/trunk/readme.txt

    r3471141 r3484337  
    44Requires at least: 5.0
    55Tested up to: 6.8
    6 Stable tag: 1.8.3
     6Stable tag: 1.8.4
    77Requires PHP: 7.0
    88License: GPLv2 or later
     
    7777
    7878== Changelog ==
     79
     80= 1.8.4 =
     81* Experiences widget: Fix a fatal error on servers without the PHP intl extension by adding a fallback for currency formatting.
    7982
    8083= 1.8.3 =
  • understory/trunk/understory.php

    r3471141 r3484337  
    33Plugin Name: Understory
    44Description: Connect your WordPress site with Understory, to easily add your booking widget to posts and pages.
    5 Version: 1.8.3
     5Version: 1.8.4
    66Author: Understory
    77Text Domain: understory
     
    1818define('UNDERSTORY_PLUGIN_URL', plugin_dir_url(__FILE__));
    1919define('UNDERSTORY_PLUGIN_SLUG', 'understory');
    20 define('UNDERSTORY_PLUGIN_VERSION', '1.8.3');
     20define('UNDERSTORY_PLUGIN_VERSION', '1.8.4');
    2121define('UNDERSTORY_OPTION_KEY', 'understory_options');
    2222define('UNDERSTORY_NONCE_KEY', 'understory_nonce');
Note: See TracChangeset for help on using the changeset viewer.