Thread Starter
goruha
(@goruha)
diff –git a/disable-updates.php b/disable-updates.php
index c25ed2f..46352d8 100644
— a/disable-updates.php
+++ b/disable-updates.php
@@ -139,8 +139,10 @@ class OS_Disable_WordPress_Updates {
*/
function admin_init() {
if ( !function_exists(“remove_action”) ) return;
–
–
+
+ global $current_user;
+ $current_user->allcaps[‘update_plugins’] = false;
+
/*
* Hide maintenance and update nag
*/
-
This reply was modified 8 years, 11 months ago by
goruha.
Thread Starter
goruha
(@goruha)
Plugin Author
wpseek
(@alphawolf)
Thanks a lot goruha!
Merged your PR and released version 1.6.1