Ticket #19791: capabilities.php.patch
File capabilities.php.patch, 795 bytes (added by , 13 years ago) |
---|
-
capabilities.php
1131 1131 // Files in uploads are excepted. 1132 1132 if ( defined('DISALLOW_FILE_MODS') && DISALLOW_FILE_MODS ) { 1133 1133 $caps[] = 'do_not_allow'; 1134 break;1135 1134 } 1136 // Fall through if not DISALLOW_FILE_MODS.1135 break; 1137 1136 case 'unfiltered_html': 1138 1137 // Disallow unfiltered_html for all users, even admins and super admins. 1139 1138 if ( defined('DISALLOW_UNFILTERED_HTML') && DISALLOW_UNFILTERED_HTML ) { 1140 1139 $caps[] = 'do_not_allow'; 1141 break;1142 1140 } 1143 // Fall through if not DISALLOW_UNFILTERED_HTML1141 break; 1144 1142 case 'delete_user': 1145 1143 case 'delete_users': 1146 1144 // If multisite these caps are allowed only for super admins.