Problem
When activation fails because a snippet contains invalid code, the activation switch on the snippets table may appear enabled temporarily without explaining that the snippet remains inactive. Opening the snippet afterward shows that it was not activated.
Forum report: https://wordpress.org/support/topic/issue-related-to-the-the-snippet-toggle-button-behavior/
Expected behavior
- A snippet that fails validation remains visibly inactive.
- The switch returns immediately to its confirmed state.
- A clear, actionable notice explains that activation failed and no activation change was made.
- Activation and deactivation failures provide consistent feedback in both table and card views.
- Bulk actions report partial failures rather than silently ignoring them.
Related implementation
PR #488 adds user-facing feedback for failed snippet actions on the management screen.
Problem
When activation fails because a snippet contains invalid code, the activation switch on the snippets table may appear enabled temporarily without explaining that the snippet remains inactive. Opening the snippet afterward shows that it was not activated.
Forum report: https://wordpress.org/support/topic/issue-related-to-the-the-snippet-toggle-button-behavior/
Expected behavior
Related implementation
PR #488 adds user-facing feedback for failed snippet actions on the management screen.