Changeset 15480
- Timestamp:
- 07/29/2010 09:58:58 PM (15 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/capabilities.php
r15404 r15480 813 813 case 'edit_users': 814 814 // If multisite these caps are allowed only for super admins. 815 if ( is_multisite() && !is_super_admin( ) )815 if ( is_multisite() && !is_super_admin( $user_id ) ) 816 816 $caps[] = 'do_not_allow'; 817 817 else … … 992 992 break; 993 993 case 'unfiltered_upload': 994 if ( defined('ALLOW_UNFILTERED_UPLOADS') && ALLOW_UNFILTERED_UPLOADS && ( !is_multisite() || is_super_admin( ) ) )994 if ( defined('ALLOW_UNFILTERED_UPLOADS') && ALLOW_UNFILTERED_UPLOADS && ( !is_multisite() || is_super_admin( $user_id ) ) ) 995 995 $caps[] = $cap; 996 996 else … … 1029 1029 case 'delete_users': 1030 1030 // If multisite these caps are allowed only for super admins. 1031 if ( is_multisite() && !is_super_admin( ) )1031 if ( is_multisite() && !is_super_admin( $user_id ) ) 1032 1032 $caps[] = 'do_not_allow'; 1033 1033 else -
trunk/wp-includes/version.php
r15275 r15480 16 16 * @global int $wp_db_version 17 17 */ 18 $wp_db_version = 15 260;18 $wp_db_version = 15477; 19 19 20 20 /**
Note: See TracChangeset
for help on using the changeset viewer.