Created
July 20, 2011 04:26
-
-
Save traeblain/1094336 to your computer and use it in GitHub Desktop.
Remove WPMU's Horribly Useless Notification Plugin Nag
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Remove WPMU Notification Plugin Nag | |
Plugin URI: http://wp.me/p1Aj2B-6g | |
Description: WPMU started trying to force people that use plugins by their developers to install a Notification plugin by making a persistent notification bug the admins. This removes that annoying piece. | |
Version: 1.2 | |
Author: Trae Blain | |
Author URI: http://traeblain.com | |
License: GPL2 | |
*/ | |
if ( function_exists( 'wdp_un_check' ) ) { | |
remove_action( 'admin_notices', 'wdp_un_check', 5 ); | |
remove_action( 'network_admin_notices', 'wdp_un_check', 5 ); | |
} | |
class WPMUDEV_Update_Notifications {}; | |
class WPMUDEV_Dashboard_Notice {}; | |
?> |
I had an issue on my WPMU network with this. I used another plugin along with your code and worked flawlessly. Thought I'd share-----
if ( function_exists( 'wdp_un_check' ) ) {
remove_action( 'admin_notices', 'wdp_un_check', 5 );
remove_action( 'network_admin_notices', 'wdp_un_check', 5 );
}
class WPMUDEV_Update_Notifications {
public function __construct()
{
}
}
?>
I wanted to suggest killing this plugin. You're just enabling WPMU's coercive, arrogant, unscrupulous and unacceptable practice.
Hey guys.. just wanted to point you to the (stripped-down, working in WP 3.6.1) plugin for this function:
http://wordpress.org/plugins/wpmu-no-nag/
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Any plan to submit this to the wordpress.org plugin repository?