# This patch file was generated by NetBeans IDE
# Following Index: paths are relative to: /Users/Francesco/NetBeansProjects/wptrunk/trunk
# This patch can be applied using context Tools: Patch action on respective folder.
# It uses platform neutral UTF-8 encoding and \n newlines.
# Above lines and this line are ignored by the patching process.
|
|
|
48 | 48 | if ( !$user_id ) |
49 | 49 | return false; |
50 | 50 | } else { |
51 | | $user = new WP_User( null, $user_login) ; |
52 | | if ( empty( $user->id ) ) |
| 51 | $user = get_userdatabylogin( $user_login ); |
| 52 | if ( empty( $user->ID ) ) |
53 | 53 | return false; |
54 | | $user_id = $user->id; |
| 54 | $user_id = $user->ID; |
55 | 55 | } |
56 | 56 | |
57 | 57 | return is_super_admin( $user_id ); |