[wp-trac] [WordPress Trac] #43861: Administrator cannot upload .cpp file to mediafiles
WordPress Trac
noreply at wordpress.org
Wed Apr 25 21:21:47 UTC 2018
#43861: Administrator cannot upload .cpp file to mediafiles
--------------------------+----------------------
Reporter: acbaile | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Media | Version:
Severity: normal | Resolution: invalid
Keywords: | Focuses:
--------------------------+----------------------
Comment (by acbaile):
Replying to [comment:1 desrosj]:
> `.cpp` files are not in the list of file types that WordPress allows to
be uploaded by default.
> There is no setting to enable this,
Why? I see in the code following parts of code:
{{{
case 'unfiltered_upload':
current_user_can( 'unfiltered_upload' )
function populate_roles_230() {
$role = get_role( 'administrator' );
if ( !empty( $role ) ) {
$role->add_cap( 'unfiltered_upload' );
}
}
}}}
It seems, this function was present in the past. Why did this possibility
disappear?
It is inconvenience.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43861#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list