Make WordPress Core


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

Disallow unfiltered uploads for admins by default. fixes #10692 for 2.8

File:
1 edited

Legend:

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

    r11019 r11888  
    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';
    903908        default:
    904909                // If no meta caps match, return the original cap.
Note: See TracChangeset for help on using the changeset viewer.