Skip to content

feat(cms): Add a plugin to disable WordPress admin view transitions - #656

Merged
jpmckinney merged 2 commits into
mainfrom
claude/wordpress-admin-transitions-plugin-2t6v1w
Sep 1, 2026
Merged

feat(cms): Add a plugin to disable WordPress admin view transitions#656
jpmckinney merged 2 commits into
mainfrom
claude/wordpress-admin-transitions-plugin-2t6v1w

Conversation

@jpmckinney

Copy link
Copy Markdown
Member

WordPress 7.0 animates navigation in the admin dashboard (view transitions), with no built-in option to disable it.

  • Adds a disable-admin-view-transitions mu-plugin that unhooks wp_enqueue_view_transitions_admin_css() from admin_enqueue_scripts — the core callback that enqueues the transitions CSS. Equivalent to the dequeue/deregister snippet in the linked article, but simpler and self-documenting. Verified against core: default-filters.php registers the action before mu-plugins load, so a top-level remove_action() catches it; on WordPress < 7.0 it's a harmless no-op.
  • Enables the plugin on the coalition (open-spending.eu) site.

The feature is purely cosmetic (the stylesheet only sets @view-transition and view-transition-name rules for the admin menu), so removing it affects no functionality. Trac #64529 proposes making core respect the per-user "animation effects" setting, at which point this plugin degrades to a no-op and can be removed.

vendor/bin/phpcs passes.

🤖 Generated with Claude Code

https://claude.ai/code/session_01X5B29jwK5j6MaxBxQMYAs7


Generated by Claude Code

WordPress 7.0 animates navigation in the admin dashboard, with no
built-in option to disable it. Enable the plugin on the coalition
(open-spending.eu) site.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01X5B29jwK5j6MaxBxQMYAs7
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01X5B29jwK5j6MaxBxQMYAs7
@jpmckinney
jpmckinney merged commit 194945b into main Sep 1, 2026
14 checks passed
@jpmckinney
jpmckinney deleted the claude/wordpress-admin-transitions-plugin-2t6v1w branch September 1, 2026 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants