Changeset 13132
- Timestamp:
- 10/30/2021 11:59:17 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-attachments.php
r13108 r13132 164 164 function bp_attachments_get_allowed_types( $type = 'avatar' ) { 165 165 // Defaults to BuddyPress supported image extensions. 166 $exts = array( 'jpeg', 'gif', 'png' ); 166 $exts = array( 'jpeg', 'gif', 'png' ); 167 $wp_exts = wp_get_ext_types(); 167 168 168 169 /** … … 175 176 176 177 switch ( $type ) { 177 case 'video' 178 case 'video': 178 179 $exts = wp_get_video_extensions(); 179 180 break; 180 181 181 case 'audio' : 182 $exts = wp_get_video_extensions(); 182 case 'audio': 183 $exts = wp_get_audio_extensions(); 184 break; 185 186 case isset( $wp_exts[ $type ] ): 187 $exts = $wp_exts[ $type ]; 183 188 break; 184 189
Note: See TracChangeset
for help on using the changeset viewer.