Compare commits
10 Commits
v1.1
...
18772160cf
Author | SHA1 | Date | |
---|---|---|---|
18772160cf | |||
361a361a50 | |||
d74b0835bf | |||
f85f6f0d3c | |||
63a2ec3ff9 | |||
f8cabf71b6 | |||
bbdc06b4c1 | |||
3bf5e3d4ab | |||
c27dbe9343 | |||
aa416c1950 |
41
.woodpecker.yml
Normal file
41
.woodpecker.yml
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
clone:
|
||||||
|
git:
|
||||||
|
image: woodpeckerci/plugin-git
|
||||||
|
debug: true
|
||||||
|
|
||||||
|
steps:
|
||||||
|
build:
|
||||||
|
image: alpine:latest
|
||||||
|
commands:
|
||||||
|
- apk add --no-cache bash zip
|
||||||
|
- VERSION=${CI_COMMIT_TAG#v}
|
||||||
|
- mkdir -p build/plugin-reference-cleaner
|
||||||
|
- cp plugin-reference-cleaner.php build/plugin-reference-cleaner/
|
||||||
|
- cp readme.txt build/plugin-reference-cleaner/
|
||||||
|
- cp LICENSE build/plugin-reference-cleaner/
|
||||||
|
- cp README.md build/plugin-reference-cleaner/
|
||||||
|
- if [ -f CHANGELOG.md ]; then cp CHANGELOG.md build/plugin-reference-cleaner/; fi
|
||||||
|
- cd build
|
||||||
|
- zip -r ../plugin-reference-cleaner-$VERSION.zip plugin-reference-cleaner
|
||||||
|
- cd ..
|
||||||
|
- echo "Build completed - plugin-reference-cleaner-$VERSION.zip"
|
||||||
|
- ls -la *.zip
|
||||||
|
|
||||||
|
release:
|
||||||
|
image: plugins/gitea-release
|
||||||
|
environment:
|
||||||
|
PLUGIN_API_KEY:
|
||||||
|
from_secret: gitea_token
|
||||||
|
PLUGIN_BASE_URL: https://gitea.wpallstars.com
|
||||||
|
PLUGIN_FILES: plugin-reference-cleaner-*.zip
|
||||||
|
PLUGIN_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."
|
||||||
|
|
||||||
|
test:
|
||||||
|
image: alpine:latest
|
||||||
|
commands:
|
||||||
|
- echo "Hello from Woodpecker CI"
|
||||||
|
- echo "Testing minimal configuration"
|
||||||
|
|
||||||
|
when:
|
||||||
|
event: [push, tag, pull_request]
|
@ -6,10 +6,12 @@ All notable changes to this project will be documented in this file.
|
|||||||
### Added
|
### Added
|
||||||
- Support for multisite WordPress installations
|
- Support for multisite WordPress installations
|
||||||
- Network admin page integration
|
- Network admin page integration
|
||||||
|
- Woodpecker CI integration for automated releases
|
||||||
|
|
||||||
### Improved
|
### Improved
|
||||||
- Error handling
|
- Error handling
|
||||||
- User experience with better confirmation messages
|
- User experience with better confirmation messages
|
||||||
|
- Security by adding proper capability checks
|
||||||
|
|
||||||
## [1.0] - 2025-03-15
|
## [1.0] - 2025-03-15
|
||||||
### Added
|
### Added
|
||||||
|
12
README.md
12
README.md
@ -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
|
||||||
|
Reference in New Issue
Block a user