[wp-hackers] Frontend Profile Editor

Peter Westwood peter.westwood at ftwr.co.uk
Tue Aug 24 08:13:09 UTC 2010


On Mon, August 23, 2010 7:49 pm, Joaquin Rodriguez Montero wrote:
> A couple of redirects and a user profile page will do the trick
>
>     if (current_user_can('level_10') || current_user_can('level_7')) {

Please don't do this!

the 'level_x' caps are only there for backward compatibility with very old
plugins and could disappear at any point in time (or maybe just work only
for random page requests).

Roles are not hierarchical.

westi



More information about the wp-hackers mailing list