Make WordPress Core

Changeset 11887


Ignore:
Timestamp:
08/28/2009 12:17:53 AM (17 years ago)
Author:
ryan
Message:

Disallow unfiltered uploads for admins by default. fixes #10692

File:
1 edited

Legend:

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

    r11878 r11887  
    917917                        $caps[] = 'read_private_pages';
    918918                break;
     919        case 'unfiltered_upload':
     920                if ( defined('ALLOW_UNFILTERED_UPLOADS') && ALLOW_UNFILTERED_UPLOADS == true )
     921                        $caps[] = $cap;
     922                else
     923                        $caps[] = 'do_not_allow';
    919924        default:
    920925                // If no meta caps match, return the original cap.
Note: See TracChangeset for help on using the changeset viewer.