Changeset 14189 for trunk/wp-includes/capabilities.php
- Timestamp:
- 04/22/2010 07:48:13 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/capabilities.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/capabilities.php
r14176 r14189 807 807 break; 808 808 case 'edit_user': 809 if ( !isset( $args[0] ) || $user_id != $args[0] ) { 810 $caps[] = 'edit_users'; 811 } 809 // Allow user to edit itself 810 if ( isset( $args[0] ) && $user_id == $args[0] ) 811 break; 812 // Fall through 813 case 'edit_users': 814 // If multisite these caps are allowed only for super admins. 815 if ( is_multisite() && !is_super_admin() ) 816 $caps[] = 'do_not_allow'; 817 else 818 $caps[] = $cap; 812 819 break; 813 820 case 'delete_post':
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)