You've already forked wp-prometheus
fix: Separate settings groups to prevent cross-tab overwrites (v0.4.5)
All checks were successful
Create Release Package / build-release (push) Successful in 1m2s
All checks were successful
Create Release Package / build-release (push) Successful in 1m2s
Split Metrics sub-tab settings into separate WordPress option groups: - wp_prometheus_endpoint_settings for auth token - wp_prometheus_selection_settings for enabled metrics - wp_prometheus_advanced_settings for isolated mode This fixes the bug where saving from one sub-tab would clear settings from other sub-tabs due to all settings sharing a single option group. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
40
CHANGELOG.md
40
CHANGELOG.md
@@ -5,6 +5,46 @@ All notable changes to this project will be documented in this file.
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [0.4.5] - 2026-02-02
|
||||
|
||||
### Fixed
|
||||
|
||||
- Settings now persist correctly across Metrics sub-tabs
|
||||
- Auth token no longer gets cleared when saving from Selection sub-tab
|
||||
- Enabled metrics no longer get cleared when saving from Endpoint sub-tab
|
||||
- Isolated mode setting no longer gets cleared when saving from other sub-tabs
|
||||
|
||||
### Changed
|
||||
|
||||
- Split Metrics settings into separate WordPress option groups per sub-tab
|
||||
- Each sub-tab now uses its own settings group to prevent cross-tab overwrites
|
||||
|
||||
## [0.4.4] - 2026-02-02
|
||||
|
||||
### Added
|
||||
|
||||
- Safe mode for metrics collection (default):
|
||||
- Removes problematic content filters early
|
||||
- Allows third-party plugins to register `wp_prometheus_collect_metrics` hooks
|
||||
- Wraps custom hooks in output buffering and try-catch for protection
|
||||
- Isolated mode option for maximum compatibility:
|
||||
- Outputs metrics before other plugins fully load
|
||||
- Use only if Safe mode causes issues
|
||||
- `WP_PROMETHEUS_ISOLATED_MODE` environment variable support
|
||||
- Mode comparison table in admin settings
|
||||
|
||||
### Changed
|
||||
|
||||
- Replaced "early mode" with two clear modes: Safe (default) and Isolated
|
||||
- Custom metrics hooks now fire by default with protection against recursion
|
||||
- Filter removal now also includes `the_content_feed` and `comment_text`
|
||||
- Updated admin UI with clearer explanations of each mode
|
||||
|
||||
### Fixed
|
||||
|
||||
- Third-party plugins can now add custom metrics without memory issues
|
||||
- Twig-based plugins (like wp-fedistream) no longer cause recursion
|
||||
|
||||
## [0.4.3] - 2026-02-02
|
||||
|
||||
### Added
|
||||
|
||||
Reference in New Issue
Block a user