Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
fb4a54ab57 | |||
67d13c9354 | |||
6aa330c387 | |||
18772160cf | |||
361a361a50 | |||
d74b0835bf | |||
f85f6f0d3c | |||
63a2ec3ff9 | |||
f8cabf71b6 | |||
bbdc06b4c1 |
@ -1,3 +1,8 @@
|
|||||||
|
clone:
|
||||||
|
git:
|
||||||
|
image: woodpeckerci/plugin-git
|
||||||
|
debug: true
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
build:
|
build:
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
@ -13,23 +18,24 @@ steps:
|
|||||||
- cd build
|
- cd build
|
||||||
- zip -r ../plugin-reference-cleaner-$VERSION.zip plugin-reference-cleaner
|
- zip -r ../plugin-reference-cleaner-$VERSION.zip plugin-reference-cleaner
|
||||||
- cd ..
|
- cd ..
|
||||||
- echo "Build completed: plugin-reference-cleaner-$VERSION.zip"
|
- echo "Build completed - plugin-reference-cleaner-$VERSION.zip"
|
||||||
- ls -la *.zip
|
- ls -la *.zip
|
||||||
|
|
||||||
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}
|
test:
|
||||||
|
image: alpine:latest
|
||||||
See [CHANGELOG.md](https://gitea.wpallstars.com/wpallstars/plugin-reference-cleaner/src/branch/main/CHANGELOG.md) for details.
|
commands:
|
||||||
|
- echo "Hello from Woodpecker CI"
|
||||||
|
- echo "Testing minimal configuration"
|
||||||
|
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: [push, tag, pull_request]
|
12
CHANGELOG.md
12
CHANGELOG.md
@ -2,6 +2,18 @@
|
|||||||
|
|
||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
|
## [1.2.1] - 2025-04-07
|
||||||
|
### Improved
|
||||||
|
- Fixed typos in documentation
|
||||||
|
- Improved text clarity
|
||||||
|
- Added question mark to first sentence for better readability
|
||||||
|
|
||||||
|
## [1.2] - 2025-04-07
|
||||||
|
### Added
|
||||||
|
- Improved documentation with detailed explanation
|
||||||
|
- Added SQL reference for technical users
|
||||||
|
- Suggested potential inclusion in WordPress core
|
||||||
|
|
||||||
## [1.1] - 2025-04-07
|
## [1.1] - 2025-04-07
|
||||||
### Added
|
### Added
|
||||||
- Support for multisite WordPress installations
|
- Support for multisite WordPress installations
|
||||||
|
46
README.md
46
README.md
@ -1,14 +1,28 @@
|
|||||||
# Plugin Reference Cleaner
|
# Plugin Reference Cleaner
|
||||||
|
Author: Marcus Quinn
|
||||||
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.
|
Author URI: https://wpallstars.com
|
||||||
|
Version: 1.2.1
|
||||||
|
License: GPL-2.0+
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
|
|
||||||
|
Have you ever deleted a plugin some other way than through the /wp-admin/plugins.php page? If so, you've probably been stuck with this annoying notification 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.
|
||||||
|
|
||||||
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.
|
||||||
|
|
||||||
**Note:** This plugin only needs to be installed and active if you have an error notification showing like this:
|
You can find these with `SELECT * FROM wp_options WHERE option_name = 'active_plugins';` — but the cleanup involves removing the rogue entry, and renumbering all others. This plugin can simply do that for you at the click of a button added to that WP standard notification.
|
||||||
|
|
||||||
|
It's probably 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 at /wp-admin/plugins.php, 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
|
||||||
@ -31,10 +45,26 @@ When WordPress detects a plugin file that no longer exists but is still referenc
|
|||||||
3. Click the button and confirm to remove the invalid plugin reference
|
3. Click the button and confirm to remove the invalid plugin reference
|
||||||
4. The page will refresh with the error notice removed
|
4. The page will refresh with the error notice removed
|
||||||
|
|
||||||
|
## Changelog
|
||||||
|
|
||||||
|
### 1.2.1
|
||||||
|
* Fixed typos in documentation
|
||||||
|
* Improved text clarity
|
||||||
|
* Added question mark to first sentence for better readability
|
||||||
|
|
||||||
|
### 1.2
|
||||||
|
* Improved documentation with detailed explanation
|
||||||
|
* Added SQL reference for technical users
|
||||||
|
* Suggested potential inclusion in WordPress core
|
||||||
|
|
||||||
|
### 1.1
|
||||||
|
* Improved error handling
|
||||||
|
* Added support for multisite installations
|
||||||
|
* Enhanced security with proper capability checks
|
||||||
|
|
||||||
|
### 1.0
|
||||||
|
* Initial release
|
||||||
|
|
||||||
## Support
|
## Support
|
||||||
|
|
||||||
For support, please visit [WP ALLSTARS](https://wpallstars.com)
|
For support, please visit https://wpallstars.com
|
||||||
|
|
||||||
## License
|
|
||||||
|
|
||||||
This plugin is licensed under the [GPL v2 or later](https://www.gnu.org/licenses/gpl-2.0.html).
|
|
@ -2,7 +2,7 @@
|
|||||||
/*
|
/*
|
||||||
* Plugin Name: Plugin Reference Cleaner
|
* Plugin Name: Plugin Reference Cleaner
|
||||||
* Description: Adds a "Remove Reference" button to plugin deactivation error notices, allowing users to clean up invalid plugin entries.
|
* Description: Adds a "Remove Reference" button to plugin deactivation error notices, allowing users to clean up invalid plugin entries.
|
||||||
* Version: 1.1
|
* Version: 1.2.1
|
||||||
* Author: Marcus Quinn
|
* Author: Marcus Quinn
|
||||||
* Author URI: https://wpallstars.com
|
* Author URI: https://wpallstars.com
|
||||||
* License: GPL-2.0+
|
* License: GPL-2.0+
|
||||||
|
27
readme.txt
27
readme.txt
@ -1,24 +1,36 @@
|
|||||||
=== Plugin Reference Cleaner ===
|
=== Plugin Reference Cleaner ===
|
||||||
Author: Marcus Quinn
|
Author: Marcus Quinn
|
||||||
Author URI: https://wpallstars.com
|
Author URI: https://wpallstars.com
|
||||||
Version: 1.1
|
Version: 1.2.1
|
||||||
License: GPL-2.0+
|
License: GPL-2.0+
|
||||||
|
|
||||||
== Description ==
|
== Description ==
|
||||||
|
|
||||||
Plugin Reference Cleaner adds a convenient "Remove Reference" button to plugin deactivation error notices in WordPress. This tool helps administrators clean up invalid plugin entries that can occur when plugins are improperly removed from the server.
|
Have you ever deleted a plugin some other way than through the /wp-admin/plugins.php page? If so, you've probably been stuck with this annoying notification 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.
|
||||||
|
|
||||||
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 involves removing the rogue entry, and renumbering all others. This plugin can simply do that for you at the click of a button added to that WP standard notification.
|
||||||
|
|
||||||
|
It's probably 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 at /wp-admin/plugins.php, like this:
|
Note: This plugin only needs to be installed and active if you have an error notification showing at /wp-admin/plugins.php, 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
|
||||||
* Works for both single site and multisite WordPress installations
|
* Works for both single site and multisite WordPress installations
|
||||||
* Confirms before removing any plugin references
|
* Confirms before removing any plugin references
|
||||||
* Simple, lightweight solution with no settings page required
|
* Simple, lightweight solution with no settings page required
|
||||||
|
* Secure implementation with proper permissions checking
|
||||||
|
* Compatible with WordPress 5.0+
|
||||||
|
|
||||||
== Installation ==
|
== Installation ==
|
||||||
|
|
||||||
@ -35,9 +47,20 @@ Note: This plugin only needs to be installed and active if you have an error not
|
|||||||
|
|
||||||
== Changelog ==
|
== Changelog ==
|
||||||
|
|
||||||
|
= 1.2.1 =
|
||||||
|
* Fixed typos in documentation
|
||||||
|
* Improved text clarity
|
||||||
|
* Added question mark to first sentence for better readability
|
||||||
|
|
||||||
|
= 1.2 =
|
||||||
|
* Improved documentation with detailed explanation
|
||||||
|
* Added SQL reference for technical users
|
||||||
|
* Suggested potential inclusion in WordPress core
|
||||||
|
|
||||||
= 1.1 =
|
= 1.1 =
|
||||||
* Improved error handling
|
* Improved error handling
|
||||||
* Added support for multisite installations
|
* Added support for multisite installations
|
||||||
|
* Enhanced security with proper capability checks
|
||||||
|
|
||||||
= 1.0 =
|
= 1.0 =
|
||||||
* Initial release
|
* Initial release
|
||||||
|
Reference in New Issue
Block a user