Changeset 3307330
- Timestamp:
- 06/06/2025 02:59:38 AM (8 months ago)
- Location:
- cubecolour-caboodle
- Files:
-
- 2 edited
-
tags/1.4.1/includes/modules/svg.php (modified) (1 diff)
-
trunk/includes/modules/svg.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cubecolour-caboodle/tags/1.4.1/includes/modules/svg.php
r3307311 r3307330 28 28 29 29 function cc_caboodle_mime_types( $mimes ){ 30 $mimes['svg'] = 'image/svg+xml'; 31 return $mimes; 30 if ( current_user_can( 'manage_options' ) ) { 31 $mimes['svg'] = 'image/svg+xml'; 32 } 33 return $mimes; 32 34 } 33 35 add_filter( 'upload_mimes', 'cc_caboodle_mime_types' ); -
cubecolour-caboodle/trunk/includes/modules/svg.php
r3307315 r3307330 28 28 29 29 function cc_caboodle_mime_types( $mimes ){ 30 $mimes['svg'] = 'image/svg+xml'; 31 return $mimes; 30 if ( current_user_can( 'manage_options' ) ) { 31 $mimes['svg'] = 'image/svg+xml'; 32 } 33 return $mimes; 32 34 } 33 35 add_filter( 'upload_mimes', 'cc_caboodle_mime_types' );
Note: See TracChangeset
for help on using the changeset viewer.