Skip to content
Snippets Groups Projects
Commit 9978b706 authored by lucha's avatar lucha Committed by lechuck
Browse files

Disable Theme Updates plugin

parent eb2ee268
Branches
Tags
No related merge requests found
<?php
/*
Plugin Name: Disable WordPress Theme Updates
Description: Disables the theme update checking and notification system.
Plugin URI: http://lud.icro.us/wordpress-plugin-disable-theme-updates/
Version: 1.1
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.8 to 3.0:
remove_action( 'load-themes.php', 'wp_update_themes' );
remove_action( 'load-update.php', 'wp_update_themes' );
remove_action( 'admin_init', '_maybe_update_themes' );
remove_action( 'wp_update_themes', 'wp_update_themes' );
add_filter( 'pre_transient_update_themes', create_function( '$a', "return null;" ) );
# 3.0:
remove_action( 'load-update-core.php', 'wp_update_themes' );
add_filter( 'pre_site_transient_update_themes', create_function( '$a', "return null;" ) );
?>
\ No newline at end of file
=== Disable WordPress Theme Updates ===
Contributors: johnbillion
Donate link: http://lud.icro.us/donations/
Tags: disable, theme, updates
Requires at least: 2.8
Tested up to: 3.4
Stable tag: trunk
Disables the theme update checking and notification system.
== Description ==
Completely disables the theme update checking system in WordPress 2.8 and later. The plugin prevents WordPress from checking for updates, and prevents any notifications from being displayed on the Themes page. Ideal for administrators of multiple WordPress installations.
= Please note! =
It's important that you keep your WordPress themes 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 themes 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 theme update system? =
Most people will not want to (and should not) disable this feature. It's a fantastic feature of 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 theme update notifications to be shown to the users of these installations. This plugin is for them.
= Can I disable the plugin update notifications too? =
Yes. Please see the [Disable WordPress Plugin Updates](http://wordpress.org/extend/plugins/disable-wordpress-plugin-updates/) plugin.
= 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.
== Changelog ==
= 1.1 =
* Preemptive support for WordPress 3.0.
= 1.0 =
* Initial release.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment