Make WordPress Core


Ignore:
Timestamp:
10/30/2016 12:46:46 PM (8 years ago)
Author:
johnbillion
Message:

Customize: Correct the capability mapping and associated tests for the unfiltered_css capability.

Fixes #35395

File:
1 edited

Legend:

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

    r38829 r39016  
    321321            $caps[] = 'do_not_allow';
    322322        break;
     323    case 'unfiltered_css' :
    323324    case 'unfiltered_html' :
    324325        // Disallow unfiltered_html for all users, even admins and super admins.
     
    328329            $caps[] = 'do_not_allow';
    329330        else
    330             $caps[] = $cap;
    331         break;
    332     case 'unfiltered_css' :
    333         $caps[] = 'unfiltered_html';
     331            $caps[] = 'unfiltered_html';
    334332        break;
    335333    case 'edit_files':
Note: See TracChangeset for help on using the changeset viewer.