Skip to content

Fix uninstall.php error by adding uninstall-safe guards#418

Open
Nesar976 wants to merge 2 commits intoioos:mainfrom
Nesar976:uninstall-script-error
Open

Fix uninstall.php error by adding uninstall-safe guards#418
Nesar976 wants to merge 2 commits intoioos:mainfrom
Nesar976:uninstall-script-error

Conversation

@Nesar976
Copy link
Copy Markdown

@Nesar976 Nesar976 commented Jan 19, 2026

This PR fixes an error in uninstall.php that was occurring during plugin uninstall.

The issue was caused by WordPress core functions being flagged as unavailable in the uninstall context and by static analysis tools. To resolve this, I added simple function_exists() checks and used uninstall-safe logic for cleaning up plugin data.

These changes are minimal and do not alter the plugin’s behavior. They only ensure that the uninstall process runs safely without errors or warnings.

Fixs: #417

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.

1 participant