3 | | Anyway, while I was investigating this issue, I thought of removing the {{{install_plugins}}} capability from an {{{administrator}}} for testing. So, I used {{{remove_cap}}} on the admin user. But, the capability didn't get removed. So, I opened up a debugger to see what was happening inside the {{{remove_cap}}} method and there seems to be a problem in it. See this debugging screenshot: [[Image(http://picpaste.com/pics/remove_cap-ubXz63Nz.1423056638.png)]] |
| 3 | Anyway, while I was investigating this issue, I thought of removing the {{{install_plugins}}} capability from an {{{administrator}}} for testing. So, I used {{{remove_cap}}} on the admin user (not a role but a {{{WP_User}}}). But, the capability didn't get removed. So, I opened up a debugger to see what was happening inside the {{{remove_cap}}} method and there seems to be a problem in it. See this debugging screenshot: http://picpaste.com/pics/remove_cap-ubXz63Nz.1423056638.png |