Ivan Warren ha scritto:
> Right... But I tried with "current_user_can('level_10')" and that seems
> to work fine. Something like :
> 
> ******
> --- upgrade.php.orig    2009-08-15 12:35:51.000000000 +0200
> +++ upgrade.php 2009-08-15 12:27:25.000000000 +0200
> @@ -21,6 +21,7 @@
>  $current_user = wp_get_current_user();
>  $user_id = $current_user->ID;
>  if ($user_id != 1)
> +       if(!current_user_can('level_10'))
>                 wp_safe_redirect('../wp-login.php?upgrade');
> 
>  timer_start();
> ******

Sweet, I will use your patch in the next upload, thanks!


Cheers,
Giuseppe.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to