Plugin Directory

Changeset 3369960


Ignore:
Timestamp:
09/29/2025 06:39:48 PM (6 months ago)
Author:
holdbar
Message:

Update to version 1.6.0 from GitHub

Location:
understory
Files:
10 edited
1 copied

Legend:

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

    r3369871 r3369960  
    204204### Version Management
    205205
    206 Current version: 1.5.6 (defined in both `package.json` and `understory.php`)
     206Current version: 1.6.0 (defined in both `package.json` and `understory.php`)
  • understory/tags/1.6.0/includes/utils/class-data-fetcher.php

    r3343976 r3369960  
    1111    public static function get($endpoint_url)
    1212    {
    13         $response = wp_remote_get($endpoint_url);
     13        $args = [
     14            'user-agent' => self::user_agent(),
     15        ];
     16
     17        $response = wp_remote_get($endpoint_url, $args);
    1418
    1519        if (is_wp_error($response)) {
     
    4751            'body' => wp_json_encode($data),
    4852            'timeout' => 30,
     53            'user-agent' => self::user_agent(),
    4954        ];
    5055
     
    6974        return $result;
    7075    }
     76
     77    private static function user_agent(): string
     78    {
     79        // Get the default WordPress User-Agent
     80        $default_user_agent = 'WordPress/' . get_bloginfo('version') . '; ' . get_bloginfo('url');
     81
     82        // Append the Understory plugin version
     83        $user_agent = $default_user_agent;
     84        if (defined('UNDERSTORY_PLUGIN_VERSION')) {
     85            $user_agent .= '; Understory/' . UNDERSTORY_PLUGIN_VERSION;
     86        }
     87
     88        return $user_agent;
     89    }
    7190}
  • understory/tags/1.6.0/package-lock.json

    r3369871 r3369960  
    11{
    22  "name": "understory",
    3   "version": "1.5.6",
     3  "version": "1.6.0",
    44  "lockfileVersion": 3,
    55  "requires": true,
     
    77    "": {
    88      "name": "understory",
    9       "version": "1.5.6",
     9      "version": "1.6.0",
    1010      "dependencies": {
    1111        "@mui/material": "6.4.2",
  • understory/tags/1.6.0/readme.txt

    r3369871 r3369960  
    44Requires at least: 5.0
    55Tested up to: 6.8
    6 Stable tag: 1.5.6
     6Stable tag: 1.6.0
    77Requires PHP: 7.0
    88License: GPLv2 or later
     
    7777
    7878== Changelog ==
     79
     80= 1.6.0 =
     81Anonymous Plugin Version Tracking
     82
     83This update adds tracking of the currently installed Understory plugin version.
     84It will enable us to better support our hosts and improve our products going forward.
     85
     86No personal information is tracked when using the Understory plugin.
    7987
    8088= 1.5.6 =
  • understory/tags/1.6.0/understory.php

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

    r3369871 r3369960  
    204204### Version Management
    205205
    206 Current version: 1.5.6 (defined in both `package.json` and `understory.php`)
     206Current version: 1.6.0 (defined in both `package.json` and `understory.php`)
  • understory/trunk/includes/utils/class-data-fetcher.php

    r3343976 r3369960  
    1111    public static function get($endpoint_url)
    1212    {
    13         $response = wp_remote_get($endpoint_url);
     13        $args = [
     14            'user-agent' => self::user_agent(),
     15        ];
     16
     17        $response = wp_remote_get($endpoint_url, $args);
    1418
    1519        if (is_wp_error($response)) {
     
    4751            'body' => wp_json_encode($data),
    4852            'timeout' => 30,
     53            'user-agent' => self::user_agent(),
    4954        ];
    5055
     
    6974        return $result;
    7075    }
     76
     77    private static function user_agent(): string
     78    {
     79        // Get the default WordPress User-Agent
     80        $default_user_agent = 'WordPress/' . get_bloginfo('version') . '; ' . get_bloginfo('url');
     81
     82        // Append the Understory plugin version
     83        $user_agent = $default_user_agent;
     84        if (defined('UNDERSTORY_PLUGIN_VERSION')) {
     85            $user_agent .= '; Understory/' . UNDERSTORY_PLUGIN_VERSION;
     86        }
     87
     88        return $user_agent;
     89    }
    7190}
  • understory/trunk/package-lock.json

    r3369871 r3369960  
    11{
    22  "name": "understory",
    3   "version": "1.5.6",
     3  "version": "1.6.0",
    44  "lockfileVersion": 3,
    55  "requires": true,
     
    77    "": {
    88      "name": "understory",
    9       "version": "1.5.6",
     9      "version": "1.6.0",
    1010      "dependencies": {
    1111        "@mui/material": "6.4.2",
  • understory/trunk/readme.txt

    r3369871 r3369960  
    44Requires at least: 5.0
    55Tested up to: 6.8
    6 Stable tag: 1.5.6
     6Stable tag: 1.6.0
    77Requires PHP: 7.0
    88License: GPLv2 or later
     
    7777
    7878== Changelog ==
     79
     80= 1.6.0 =
     81Anonymous Plugin Version Tracking
     82
     83This update adds tracking of the currently installed Understory plugin version.
     84It will enable us to better support our hosts and improve our products going forward.
     85
     86No personal information is tracked when using the Understory plugin.
    7987
    8088= 1.5.6 =
  • understory/trunk/understory.php

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