Changeset 13312 for trunk/src/bp-core/bp-core-avatars.php
- Timestamp:
- 08/13/2022 08:21:06 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-avatars.php
r13311 r13312 811 811 812 812 /** This filter is documented in bp-core/bp-core-avatars.php */ 813 $item_id = apply_filters( 'bp_core_avatar_item_id', $args['item_id'], $args['object'] );813 $item_id = (int) apply_filters( 'bp_core_avatar_item_id', $args['item_id'], $args['object'] ); 814 814 } else { 815 $item_id = $args['item_id']; 816 } 817 818 if ( $item_id && ( ctype_digit( $item_id ) || is_int( $item_id ) ) ) { 819 $item_id = (int) $item_id; 820 } else { 815 $item_id = (int) str_replace( '.', '', $args['item_id'] ); 816 } 817 818 if ( ! $item_id ) { 821 819 return false; 822 820 }
Note: See TracChangeset
for help on using the changeset viewer.