Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Force strong passwords from network admin screens #12
This PR is a proposal to fix the bug #2
Wordpress capabilities are affected on a per blog basis. Calling user_can from a network admin screen is pointless because there is no blog context, so no caps.
A choice must be made here. Force strong passwords on admin screens, regardless of user capabilities, or cross every blog to check caps. Checking on every blog might cause performance problems or worst (exec time exceed) when fired on very large networks.
In my PR, i chose to simply force strong passwords from network admin screens as only power users can access it and if they chose to use this plugin, they surely want strong passwords to be used.
Many thanks for this. I have no experience with MU, so I'll have to rely on your testing for this. Your reasoning sounds good though. I've merged this, I'll shout out so anyone interested can give it a go, and if there's no negative feedback I'll release it to wordpress.org.