Changeset 14032
- Timestamp:
- 04/07/2010 03:28:10 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/user.php
r13961 r14032 80 80 // Don't let anyone with 'edit_users' (admins) edit their own role to something without it. 81 81 // Multisite super admins can freely edit their blog roles -- they possess all caps. 82 if ( ( is_multisite() && is_s ite_admin() ) || $user_id != $current_user->id || ($potential_role && $potential_role->has_cap( 'edit_users' ) ) )82 if ( ( is_multisite() && is_super_admin() ) || $user_id != $current_user->id || ($potential_role && $potential_role->has_cap( 'edit_users' ) ) ) 83 83 $user->role = $new_role; 84 84 -
trunk/wp-includes/ms-deprecated.php
r13998 r14032 102 102 */ 103 103 function get_current_user_id() { 104 _deprecated_function( __FUNCTION__, '3.0', '$GLOBALS \'current_user\']->ID' );104 _deprecated_function( __FUNCTION__, '3.0', '$GLOBALS[\'current_user\']->ID' ); 105 105 return $GLOBALS['current_user']->ID; 106 106 }
Note: See TracChangeset
for help on using the changeset viewer.