https://github.com/littlebizzy/plugin-blacklist
Disallows bad WordPress plugins
https://github.com/littlebizzy/plugin-blacklist
wordpress wordpress-plugin
Last synced: 15 days ago
JSON representation
Disallows bad WordPress plugins
- Host: GitHub
- URL: https://github.com/littlebizzy/plugin-blacklist
- Owner: littlebizzy
- License: gpl-3.0
- Created: 2018-09-19T15:02:07.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-10-26T07:38:53.000Z (over 1 year ago)
- Last Synced: 2025-05-07T19:58:45.640Z (9 months ago)
- Topics: wordpress, wordpress-plugin
- Language: PHP
- Homepage: https://www.littlebizzy.com/plugins/plugin-blacklist
- Size: 128 KB
- Stars: 10
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# Plugin Blacklist
Disallows bad WordPress plugins
## Changelog
### 2.2.0
- added `Tested up to:` header set at 6.9
- added `Update URI: false` header
- added `Text Domain: plugin-blacklist` header
### 2.1.6
- hardened plugin slug normalization for cross-platform filesystem compatibility
### 2.1.5
- added `Requires PHP` plugin header
### 2.1.4
- improved disabling "Install Now" button on exact match slugs like `/jetpack/`
### 2.1.3
- tweaked disable wordpress.org snippet
- replaced `esc_html()` with `wp_kses_post()` wherever messages are being output in admin notices
### 2.1.2
- added `ajaxComplete` handler to ensure "Install Now" button is properly disabled even after AJAX events
- minor code cleanup and security and performance enhancements
### 2.1.1
- changed `pbm_enqueue_admin_scripts` action to priority `25` to avoid conflicts with Repo Man
### 2.1.0
- minor refactoring to fix support for exact-match `/plugin-slug/` using slashes (without slashes is prefix match only)
- tweaks to formatting, comments, etc.
### 2.0.2
- add `gu_override_dot_org` (fixed) snippet
### 2.0.1
- new global variable `$pbm_blacklist_data`
- improved `pbm_add_admin_notice()` to prevent duplicates
### 2.0.0
- completely refactored plugin to standard WordPress coding using ChatGPT
- no more cron jobs or database usage
- main blacklist now called `blacklist`
- `future` blacklist now called `graylist`
- `pause` blacklist now called `utility`
- renamed other sublists to: `blacklist classes`, `blacklist functions`, `graylist classes`, `graylist functions`, `utility classes`, `utility functions`
- blacklisted plugins force deactivated on each WP Admin page load via `init` if activated (no longer uses cron jobs for this check)
- new feature to gray out blacklisted plugins in the plugin search
- new featured to disable blacklisted plugins action links and replace with the word "Blacklisted"
- trying to circumvent using drop-down menu Activate or direct URL are sent to `wp_die`
- enhanced code for PHP 8.3
- compatible with PHP 7.0, 7.2, 7.4, 8.1
- support for Git Updater (although this is meant to be a MU plugin only)
### 1.1.1
- admin notices code play (incomplete)
- abandoned version
### 1.1.0
- "pause blacklist" feature added (admin notice for utility plugins that should be deactivated when not in use)
- it uses the same technique of the previous sections, checking all plugins on activation/deactivation processes, and also every hour via WP cron. The future and pause plugins info is saved in autoloaded options to avoid extra database queries.
- for clarity I have changed the admin notice color codes, now it shows red border left (error code) for deactivated plugins (yellow before), yellow left border (warning) for future plugins (blue before), and blue (info) for pause plugins.
- added a new section `Pause Blacklist` in the plugin blacklist.txt template ini file.
### 1.0.1
- minor performance improvements during the "by code" plugin detection, avoiding the WP active_plugins options update when no banned plugins detected by functions or classes
### 1.0.0
- initial release
- tested with PHP 7.0
- tested with PHP 7.1
- tested with PHP 7.2
- plugin uses PHP namespaces
- object-oriented codebase
- WP Cron fires 1x hour (de-activates blacklisted plugins)