Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.8/wp-includes/capabilities.php

    r11019 r11913  
    901901            $caps[] = 'read_private_pages';
    902902        break;
     903    case 'unfiltered_upload':
     904        if ( defined('ALLOW_UNFILTERED_UPLOADS') && ALLOW_UNFILTERED_UPLOADS == true )
     905            $caps[] = $cap;
     906        else
     907            $caps[] = 'do_not_allow';
     908        break;
    903909    default:
    904910        // If no meta caps match, return the original cap.
Note: See TracChangeset for help on using the changeset viewer.