Skip to content

Conversation

@ZacharyRener
Copy link
Contributor

Description of the Change

Closes #203

With a certain condition met, two Plugins menu items will appear in the admin sidebar. The duplicate one will have no icon or url. When you collapse the menu, the blank menu item will cover up to uncollapse button, leaving editors stuck in collapsed mode.

How to test the Change

First, follow the steps in #203 to reproduce the duplicate plugin item issue. Then, merge this code in locally, and confirm the duplicate item is no longer being added.

Changelog Entry

Fixed - Duplicate plugins menu item in admin

Credits

Props @ZacharyRener

Checklist:

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request fixes a bug where duplicate "Plugins" menu items would appear in the WordPress admin sidebar under certain conditions. The duplicate item would have no icon or URL and could block the uncollapse button when the menu is collapsed.

Changes:

  • Refactored the conditional logic in set_plugin_menu_update_count() to properly validate menu item existence before attempting to modify it

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@darylldoyle darylldoyle merged commit 2e9706a into develop Jan 15, 2026
12 checks passed
@darylldoyle darylldoyle deleted the fix/plugin-count-safety-check branch January 15, 2026 12:54
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.

Duplicate plugins menu item in admin

3 participants