Changes between Version 1 and Version 2 of Ticket #63004, comment 3
- Timestamp:
- 02/25/2025 01:37:42 PM (12 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #63004, comment 3
v1 v2 7 7 From: 8 8 9 ``` 10 $userlist = implode( ',', array_map( 'absint', $users ) ); 11 ``` 9 `$userlist = implode( ',', array_map( 'absint', $users ) );` 12 10 13 11 To: 14 12 15 ``` 16 $userlist = implode( ',', wp_parse_id_list( $users ) ); 17 ``` 13 `$userlist = implode( ',', wp_parse_id_list( $users ) );` 18 14 19 15 I also added: 20 16 21 ``` 22 $count = array_fill_keys( $userlist, 0 ); 23 ``` 17 `$count = array_fill_keys( $userlist, 0 );` 24 18 25 19 This change eliminates the need for an extra `foreach` loop.