add_action('wp_footer', 'snippet_active_banner');
add_action('admin_footer', 'snippet_active_banner');
function snippet_active_banner() {
echo '<div style="position:fixed;bottom:0;left:0;right:0;background:#4caf50;color:#fff;text-align:center;padding:10px;font-weight:600;z-index:999999;">✓ This Code Snippet is active!</div>';
}
Current behavior
Trashing a network snippet in Multisite activates it regardless of its previous state. The Trash functions as a hidden 'enabled snippets' list, which is counterintuitive and potentially dangerous.
Steps to reproduce
Bug
Observations
Additional context
Fatal error: Cannot redeclare snippet_active_banner()when tested on multisite and with file-based execution enabled.Reference
Support forum link