Compare commits

...

6 Commits

Author SHA1 Message Date
18772160cf Update README.md with detailed explanation and SQL reference
Some checks are pending
ci/woodpecker/push/woodpecker Pipeline is pending
2025-04-07 13:47:23 +01:00
361a361a50 Fix duplicate steps section in Woodpecker CI configuration
Some checks are pending
ci/woodpecker/push/woodpecker Pipeline is pending
2025-04-07 06:19:06 +01:00
d74b0835bf Fix Woodpecker CI configuration to avoid duplicate steps and use multiple events 2025-04-07 06:18:17 +01:00
f85f6f0d3c Use minimal Woodpecker CI configuration for testing
Some checks failed
ci/woodpecker/push/woodpecker Pipeline is pending
ci/woodpecker/tag/woodpecker Pipeline is pending
ci/woodpecker/manual/woodpecker Pipeline is pending
Build Release / Build and Create Release (push) Has been cancelled
2025-04-07 06:16:04 +01:00
63a2ec3ff9 Add clone debugging to Woodpecker CI configuration
Some checks failed
ci/woodpecker/tag/woodpecker Pipeline is pending
Build Release / Build and Create Release (push) Has been cancelled
2025-04-07 06:11:28 +01:00
f8cabf71b6 Update Woodpecker CI configuration to use environment variables instead of secrets
Some checks failed
ci/woodpecker/tag/woodpecker Pipeline is pending
Build Release / Build and Create Release (push) Has been cancelled
2025-04-07 05:52:02 +01:00
2 changed files with 29 additions and 10 deletions

View File

@ -1,3 +1,8 @@
clone:
git:
image: woodpeckerci/plugin-git
debug: true
steps: steps:
build: build:
image: alpine:latest image: alpine:latest
@ -18,15 +23,19 @@ steps:
release: release:
image: plugins/gitea-release image: plugins/gitea-release
secrets: [ gitea_token ] environment:
settings: PLUGIN_API_KEY:
api_key:
from_secret: gitea_token from_secret: gitea_token
base_url: https://gitea.wpallstars.com PLUGIN_BASE_URL: https://gitea.wpallstars.com
files: PLUGIN_FILES: plugin-reference-cleaner-*.zip
- plugin-reference-cleaner-*.zip PLUGIN_TITLE: "Release ${CI_COMMIT_TAG}"
title: "Release ${CI_COMMIT_TAG}" PLUGIN_NOTE: "Plugin Reference Cleaner ${CI_COMMIT_TAG}\n\nSee [CHANGELOG.md](https://gitea.wpallstars.com/wpallstars/plugin-reference-cleaner/src/branch/main/CHANGELOG.md) for details."
note: "Plugin Reference Cleaner ${CI_COMMIT_TAG}\n\nSee [CHANGELOG.md](https://gitea.wpallstars.com/wpallstars/plugin-reference-cleaner/src/branch/main/CHANGELOG.md) for details."
test:
image: alpine:latest
commands:
- echo "Hello from Woodpecker CI"
- echo "Testing minimal configuration"
when: when:
event: tag event: [push, tag, pull_request]

View File

@ -1,14 +1,24 @@
# Plugin Reference Cleaner # Plugin Reference Cleaner
A WordPress plugin that adds a "Remove Reference" button to plugin deactivation error notices, allowing users to clean up invalid plugin entries in the database. Have you ever deleted a plugin some other way than on the `/wp-admin/plugins.php` page, you'll probabaly have been stuck with this annoying notifications that can't be cleared:
> "The plugin folder-name/file-name.php has been deactivated due to an error: Plugin file does not exist."
This small WordPress utility plugin adds a "Remove Reference" button to these plugin deactivation error notices, allowing you to clean up the invalid plugin entries in the database.
## Description ## Description
When WordPress detects a plugin file that no longer exists but is still referenced in the database as active, it displays an error notice. This plugin enhances those notices with a button that allows you to safely remove the invalid reference with a single click. When WordPress detects a plugin file that no longer exists but is still referenced in the database as active, it displays an error notice. This plugin enhances those notices with a button that allows you to safely remove the invalid reference with a single click.
You can find these with `SELECT * FROM wp_options WHERE option_name = 'active_plugins';` — but, the cleanup involved removing the rogue entry, and renumbering the others. This plugin can simply do that for you at the click of a button added to that WP standard notification.
It's probabaly something that should be added to WP core. If anyone from the core team wants to adopt this solution, it's GPL, so feel free.
**Note:** This plugin only needs to be installed and active if you have an error notification showing like this: **Note:** This plugin only needs to be installed and active if you have an error notification showing like this:
"The plugin folder-name/file-name.php has been deactivated due to an error: Plugin file does not exist." "The plugin folder-name/file-name.php has been deactivated due to an error: Plugin file does not exist."
If you don't have this notification perpetually showing on your `/wp-admin/plugins.php` page, then you don't need this, but you might like to save or bookmark it for if ever you do.
## Features ## Features
* Adds a "Remove Reference" button to plugin error notices * Adds a "Remove Reference" button to plugin error notices