WordPress.org

Make WordPress Core

Ticket #19791: capabilities.php.patch

File capabilities.php.patch, 795 bytes (added by pagesimplify, 6 years ago)
  • capabilities.php

     
    11311131                // Files in uploads are excepted.
    11321132                if ( defined('DISALLOW_FILE_MODS') && DISALLOW_FILE_MODS ) {
    11331133                        $caps[] = 'do_not_allow';
    1134                         break;
    11351134                }
    1136                 // Fall through if not DISALLOW_FILE_MODS.
     1135                break;         
    11371136        case 'unfiltered_html':
    11381137                // Disallow unfiltered_html for all users, even admins and super admins.
    11391138                if ( defined('DISALLOW_UNFILTERED_HTML') && DISALLOW_UNFILTERED_HTML ) {
    11401139                        $caps[] = 'do_not_allow';
    1141                         break;
    11421140                }
    1143                 // Fall through if not DISALLOW_UNFILTERED_HTML
     1141                break;
    11441142        case 'delete_user':
    11451143        case 'delete_users':
    11461144                // If multisite these caps are allowed only for super admins.