Make WordPress Core

Changeset 14244


Ignore:
Timestamp:
04/26/2010 09:42:42 PM (15 years ago)
Author:
ryan
Message:

Introduce DISALLOW_UNFILTERED_HTML

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/capabilities.php

    r14206 r14244  
    10191019        // Fall through if not DISALLOW_FILE_MODS.
    10201020    case 'unfiltered_html':
     1021        // Disallow unfiltered_html for all users, even admins and super admins.
     1022        if ( defined('DISALLOW_UNFILTERED_HTML') && DISALLOW_UNFILTERED_HTML ) {
     1023            $caps[] = 'do_not_allow';
     1024            break;
     1025        }
     1026        // Fall through if not DISALLOW_UNFILTERED_HTML
    10211027    case 'delete_user':
    10221028    case 'delete_users':
Note: See TracChangeset for help on using the changeset viewer.