Changeset 10487 for trunk/src/bp-core/bp-core-avatars.php
- Timestamp:
- 02/01/2016 06:53:30 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-avatars.php
r10417 r10487 1446 1446 1447 1447 /** 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1448 * Filters the list of allowed image types. 1449 * 1450 * @since 2.3.0 1451 * 1452 * @param array $allowed_types List of image types. 1453 */ 1454 $avatar_types = (array) apply_filters( 'bp_core_get_allowed_avatar_types', $allowed_types ); 1455 1456 if ( empty( $avatar_types ) ) { 1457 $avatar_types = $allowed_types; 1458 } else { 1459 $avatar_types = array_intersect( $allowed_types, $avatar_types ); 1460 } 1461 1462 return array_values( $avatar_types ); 1463 1463 } 1464 1464
Note: See TracChangeset
for help on using the changeset viewer.