You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Complete existing interactive PR #149 through its existing CI, review and merge gates. Preserve its commits; repair only evidenced failures.
Files Scope
includes/Options.php
readme.txt
Verification
Use the existing checks and verification documented on the source PR; inspect its exact-head CI and review feedback before repair. Do not bypass approval or security gates.
Recovery state
Initially blocked pending verified PR linkage. Pulse owns linkage recovery; after verification, existing feedback routing transitions this issue to available when repair is needed. No independent dispatch before that transition.
On multisite, when the plugin is not network-activated, settings were saved to the per-site wp_N_options table but always read with get_site_option(), which returns the network-level value. Sub-sites therefore saved their settings, never saw them again, and fell back to defaults (or to the primary site's values once it was configured).
Reported at https://wordpress.org/support/topic/multi-log-config/
Changes
includes/Options.php: get_options() now reads from the same store update_options() writes to: network option when network-activated, per-site option otherwise.
The static options cache is keyed by blog ID, so switch_to_blog() cannot return another site's cached settings.
readme.txt: changelog entry.
Verification
Ran the real Options class against a local multisite (plugin not network-active), saving timer=17 on blog 4 and then forcing a fresh read:
Before: re-read returned 5 (reproduces the report).
After: re-read returned 17; blogs 5 and 1 stayed at the default 5.
composer lint (PHPCS/PHPStan) and npm run lint pass with no errors.
Not run: the PHPUnit suite (needs a disposable _test database) and browser testing. The existing multisite test bootstrap network-activates the plugin, so it exercises only the network path; no new test added.
Activity
superdav42 commentedon Nov 11, 2026
Summary
On multisite, when the plugin is not network-activated, settings were saved to the per-site
wp_N_optionstable but always read withget_site_option(), which returns the network-level value. Sub-sites therefore saved their settings, never saw them again, and fell back to defaults (or to the primary site's values once it was configured).Reported at https://wordpress.org/support/topic/multi-log-config/
Changes
includes/Options.php:get_options()now reads from the same storeupdate_options()writes to: network option when network-activated, per-site option otherwise.switch_to_blog()cannot return another site's cached settings.readme.txt: changelog entry.Verification
Ran the real
Optionsclass against a local multisite (plugin not network-active), savingtimer=17on blog 4 and then forcing a fresh read:5(reproduces the report).17; blogs 5 and 1 stayed at the default5.composer lint(PHPCS/PHPStan) andnpm run lintpass with no errors.Not run: the PHPUnit suite (needs a disposable
_testdatabase) and browser testing. The existing multisite test bootstrap network-activates the plugin, so it exercises only the network path; no new test added.aidevops.sh v3.39.147 plugin for OpenCode
Merged via PR #149 to master.
Merged by deterministic merge pass (pulse-wrapper.sh).