Disable-Users icon indicating copy to clipboard operation
Disable-Users copied to clipboard

Various improvements

Open khromov opened this issue 8 years ago • 0 comments

Hello. We needed a similar plugin for our site so I forked yours and made some improvements.

Since I reformatted the code style to use the WordPress official coding guidelines, this PR might be more readable by excluding the whitespace: https://github.com/jaredatch/Disable-Users/pull/23/files?w=1

Changelog:

= 2.0 =

* Add multisite compatibility
* Add enable/disable links from user lists
* Use better hook for user login checking (supports XML-RPC)
* Add Swedish translation
* Reformat code to WordPress official code style

Multisite was currently not supported properly because it allowed any admin for a single site to disable users across the entire network. This is adressed by only allowing super admins this possibility on multisite.

Screenshot of new UI option: screen shot 2017-08-07 at 12 46 26

As for changing how the logged in status is stored (from a string 0 or 1 to a boolean), WP handles it the same way internally so it's backwards compatible.

Let me know if there is anything you want me to change or if you have any questions.

khromov avatar Aug 07 '17 10:08 khromov