Skip to content

v0.1.2 — strip admin-bar toggle + restore install-is-the-opt-in default

Choose a tag to compare

@chriskmnds chriskmnds released this 06 May 15:59
· 40 commits to trunk since this release
7be0661

v0.1.2 carries two related changes that together restore the plugin's original design framing for plain-WP enablement.

What changed

  • Removed the admin-bar opt-in toggle. The "Try the new sidebar" / "Restore default sidebar" admin-bar node and its admin_init GET handler are gone from the bootstrap.
  • Restored "install is the opt-in" as the default. The wp_admin_sidebar_enabled filter now returns true for any logged-in user. Activating the plugin enables the redesign site-wide; deactivating reverts.

Together these eliminate a stranded "default-off-no-UI" state. Hosts that need finer control (per-blog, per-user, percentage rollout) override wp_admin_sidebar_enabled from a host adapter.

Why

  • A top-bar toggle entry was heavier than this feature warranted.
  • The toggle UI was leaking onto host environments where the gate is bound externally (e.g., a managed-WordPress host using its own per-blog feature flag), creating click-targets that did nothing visible.
  • The right opt-in surface is a design question we'd rather take deliberately than inherit. Tracked in #16Explore opt-in / opt-out mechanism for the redesigned sidebar.

What stays

  • The wp_admin_sidebar_enabled filter itself.
  • WP_ADMIN_SIDEBAR_FORCE_ENABLED / WP_ADMIN_SIDEBAR_FORCE_DISABLED constants (dev override + kill switch).
  • Data-preserving deactivation: saved layouts persist across deactivate / reactivate cycles.

Tests

All four PHP test suites pass: test-grep-no-wpcom-tokens.php, test-signals.php (13/13), test-normalizer.php (7/7), test-rest.php (25/25).

Requires

  • WordPress 6.5+
  • PHP 8.0+

License

GPL-2.0-or-later.