Ticket #10692: 10692.diff
File 10692.diff, 529 bytes (added by , 15 years ago) |
---|
-
wp-includes/capabilities.php
916 916 else 917 917 $caps[] = 'read_private_pages'; 918 918 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'; 919 924 default: 920 925 // If no meta caps match, return the original cap. 921 926 $caps[] = $cap;