Ticket #20488: 20488.diff
File 20488.diff, 1.0 KB (added by , 13 years ago) |
---|
-
wp-includes/capabilities.php
1124 1124 else 1125 1125 $caps[] = 'do_not_allow'; 1126 1126 break; 1127 case 'unfiltered_html' : 1128 // Disallow unfiltered_html for all users, even admins and super admins. 1129 if ( defined( 'DISALLOW_UNFILTERED_HTML' ) && DISALLOW_UNFILTERED_HTML ) 1130 $caps[] = 'do_not_allow'; 1131 else 1132 $caps[] = $cap; 1133 break; 1127 1134 case 'edit_files': 1128 1135 case 'edit_plugins': 1129 1136 case 'edit_themes': … … 1146 1153 break; 1147 1154 } 1148 1155 // Fall through if not DISALLOW_FILE_MODS. 1149 case 'unfiltered_html':1150 // Disallow unfiltered_html for all users, even admins and super admins.1151 if ( defined('DISALLOW_UNFILTERED_HTML') && DISALLOW_UNFILTERED_HTML ) {1152 $caps[] = 'do_not_allow';1153 break;1154 }1155 // Fall through if not DISALLOW_UNFILTERED_HTML1156 1156 case 'delete_user': 1157 1157 case 'delete_users': 1158 1158 // If multisite these caps are allowed only for super admins.