Commit b4e54486 authored by root's avatar root Committed by lechuck
Browse files

Adding plugin disable-wordpress-plugin-updates

parent 2208750a
<?php
/*
Plugin Name: Disable WordPress Plugin Updates
Description: Disables the plugin update checking and notification system.
Plugin URI: http://lud.icro.us/disable-wordpress-plugin-updates/
Version: 1.4
Author: John Blackbourn
Author URI: http://johnblackbourn.com/
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
*/
# 2.3 to 2.7:
add_action( 'admin_menu', create_function( '$a', "remove_action( 'load-plugins.php', 'wp_update_plugins' );") );
# Why use the admin_menu hook? It's the only one available between the above hook being added and being applied
add_action( 'admin_init', create_function( '$a', "remove_action( 'admin_init', 'wp_update_plugins' );"), 2 );
add_action( 'init', create_function( '$a', "remove_action( 'init', 'wp_update_plugins' );"), 2 );
add_filter( 'pre_option_update_plugins', create_function( '$a', "return null;" ) );
# 2.8 to 3.0:
remove_action( 'load-plugins.php', 'wp_update_plugins' );
remove_action( 'load-update.php', 'wp_update_plugins' );
remove_action( 'admin_init', '_maybe_update_plugins' );
remove_action( 'wp_update_plugins', 'wp_update_plugins' );
add_filter( 'pre_transient_update_plugins', create_function( '$a', "return null;" ) );
# 3.0:
remove_action( 'load-update-core.php', 'wp_update_plugins' );
add_filter( 'pre_site_transient_update_plugins', create_function( '$a', "return null;" ) );
?>
\ No newline at end of file
=== Disable WordPress Plugin Updates ===
Contributors: johnbillion
Donate link: http://lud.icro.us/donations/
Tags: disable, plugin, updates
Requires at least: 2.3
Tested up to: 3.0
Stable tag: trunk
Disables the plugin update checking and notification system.
== Description ==
Completely disables the plugin update checking system in WordPress. The plugin prevents WordPress from checking for updates, and prevents any notifications from being displayed on the Plugins page. Ideal for administrators of multiple WordPress installations.
= Please note! =
It's *very* important that you keep your WordPress plugins up to date. If you don't, your blog or website could be susceptible to security vulnerabilities or performance issues. If you use this plugin, you must make sure you keep yourself up to date with new releases of your active plugins and update them as new versions are released.
== Installation ==
1. Unzip the ZIP file and drop the folder straight into your `wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
== Frequently Asked Questions ==
= Why would I want to disable the plugin update system? =
Most people will not want to (and should not) disable this feature. It's a fantastic feature WordPress and I'm fully in support of it. However, administrators who maintain multiple installations of WordPress on behalf of other people (eg. clients) may not want plugin update notifications to be shown to the users of these installations. This plugin is for them.
= Can I disable the WordPress core update notifications too? =
Yes. Please see the [Disable WordPress Core Update](http://wordpress.org/extend/plugins/disable-wordpress-core-update/) plugin.
= Can I disable the theme update notifications too? =
Yes. Please see the [Disable WordPress Theme Updates](http://wordpress.org/extend/plugins/disable-wordpress-theme-updates/) plugin.
== Changelog ==
= 1.4 =
* Preemptive support for WordPress 3.0.
= 1.3 =
* Support for WordPress 2.8.
= 1.2 =
* Support for WordPress 2.6.
= 1.0 =
* Initial release.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment