Changeset 3369960
- Timestamp:
- 09/29/2025 06:39:48 PM (6 months ago)
- Location:
- understory
- Files:
-
- 10 edited
- 1 copied
-
tags/1.6.0 (copied) (copied from understory/trunk)
-
tags/1.6.0/CLAUDE.md (modified) (1 diff)
-
tags/1.6.0/includes/utils/class-data-fetcher.php (modified) (3 diffs)
-
tags/1.6.0/package-lock.json (modified) (2 diffs)
-
tags/1.6.0/readme.txt (modified) (2 diffs)
-
tags/1.6.0/understory.php (modified) (2 diffs)
-
trunk/CLAUDE.md (modified) (1 diff)
-
trunk/includes/utils/class-data-fetcher.php (modified) (3 diffs)
-
trunk/package-lock.json (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/understory.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
understory/tags/1.6.0/CLAUDE.md
r3369871 r3369960 204 204 ### Version Management 205 205 206 Current version: 1. 5.6(defined in both `package.json` and `understory.php`)206 Current 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 11 11 public static function get($endpoint_url) 12 12 { 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); 14 18 15 19 if (is_wp_error($response)) { … … 47 51 'body' => wp_json_encode($data), 48 52 'timeout' => 30, 53 'user-agent' => self::user_agent(), 49 54 ]; 50 55 … … 69 74 return $result; 70 75 } 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 } 71 90 } -
understory/tags/1.6.0/package-lock.json
r3369871 r3369960 1 1 { 2 2 "name": "understory", 3 "version": "1. 5.6",3 "version": "1.6.0", 4 4 "lockfileVersion": 3, 5 5 "requires": true, … … 7 7 "": { 8 8 "name": "understory", 9 "version": "1. 5.6",9 "version": "1.6.0", 10 10 "dependencies": { 11 11 "@mui/material": "6.4.2", -
understory/tags/1.6.0/readme.txt
r3369871 r3369960 4 4 Requires at least: 5.0 5 5 Tested up to: 6.8 6 Stable tag: 1. 5.66 Stable tag: 1.6.0 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later … … 77 77 78 78 == Changelog == 79 80 = 1.6.0 = 81 Anonymous Plugin Version Tracking 82 83 This update adds tracking of the currently installed Understory plugin version. 84 It will enable us to better support our hosts and improve our products going forward. 85 86 No personal information is tracked when using the Understory plugin. 79 87 80 88 = 1.5.6 = -
understory/tags/1.6.0/understory.php
r3369871 r3369960 3 3 Plugin Name: Understory 4 4 Description: Connect your WordPress site with Understory, to easily add your booking widget to posts and pages. 5 Version: 1. 5.65 Version: 1.6.0 6 6 Author: Understory 7 7 Text Domain: understory … … 18 18 define('UNDERSTORY_PLUGIN_URL', plugin_dir_url(__FILE__)); 19 19 define('UNDERSTORY_PLUGIN_SLUG', 'understory'); 20 define('UNDERSTORY_PLUGIN_VERSION', '1. 5.6');20 define('UNDERSTORY_PLUGIN_VERSION', '1.6.0'); 21 21 define('UNDERSTORY_OPTION_KEY', 'understory_options'); 22 22 define('UNDERSTORY_NONCE_KEY', 'understory_nonce'); -
understory/trunk/CLAUDE.md
r3369871 r3369960 204 204 ### Version Management 205 205 206 Current version: 1. 5.6(defined in both `package.json` and `understory.php`)206 Current version: 1.6.0 (defined in both `package.json` and `understory.php`) -
understory/trunk/includes/utils/class-data-fetcher.php
r3343976 r3369960 11 11 public static function get($endpoint_url) 12 12 { 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); 14 18 15 19 if (is_wp_error($response)) { … … 47 51 'body' => wp_json_encode($data), 48 52 'timeout' => 30, 53 'user-agent' => self::user_agent(), 49 54 ]; 50 55 … … 69 74 return $result; 70 75 } 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 } 71 90 } -
understory/trunk/package-lock.json
r3369871 r3369960 1 1 { 2 2 "name": "understory", 3 "version": "1. 5.6",3 "version": "1.6.0", 4 4 "lockfileVersion": 3, 5 5 "requires": true, … … 7 7 "": { 8 8 "name": "understory", 9 "version": "1. 5.6",9 "version": "1.6.0", 10 10 "dependencies": { 11 11 "@mui/material": "6.4.2", -
understory/trunk/readme.txt
r3369871 r3369960 4 4 Requires at least: 5.0 5 5 Tested up to: 6.8 6 Stable tag: 1. 5.66 Stable tag: 1.6.0 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later … … 77 77 78 78 == Changelog == 79 80 = 1.6.0 = 81 Anonymous Plugin Version Tracking 82 83 This update adds tracking of the currently installed Understory plugin version. 84 It will enable us to better support our hosts and improve our products going forward. 85 86 No personal information is tracked when using the Understory plugin. 79 87 80 88 = 1.5.6 = -
understory/trunk/understory.php
r3369871 r3369960 3 3 Plugin Name: Understory 4 4 Description: Connect your WordPress site with Understory, to easily add your booking widget to posts and pages. 5 Version: 1. 5.65 Version: 1.6.0 6 6 Author: Understory 7 7 Text Domain: understory … … 18 18 define('UNDERSTORY_PLUGIN_URL', plugin_dir_url(__FILE__)); 19 19 define('UNDERSTORY_PLUGIN_SLUG', 'understory'); 20 define('UNDERSTORY_PLUGIN_VERSION', '1. 5.6');20 define('UNDERSTORY_PLUGIN_VERSION', '1.6.0'); 21 21 define('UNDERSTORY_OPTION_KEY', 'understory_options'); 22 22 define('UNDERSTORY_NONCE_KEY', 'understory_nonce');
Note: See TracChangeset
for help on using the changeset viewer.