Viewing 3 replies - 1 through 3 (of 3 total)
  • 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 7 years, 9 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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fix bug bulk operation update’ is closed to new replies.