Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #63004, comment 3


Ignore:
Timestamp:
02/25/2025 01:37:42 PM (12 months ago)
Author:
jigar bhanushali
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #63004, comment 3

    v1 v2  
    77From:
    88
    9 ```
    10 $userlist = implode( ',', array_map( 'absint', $users ) );
    11 ```
     9`$userlist = implode( ',', array_map( 'absint', $users ) );`
    1210
    1311To:
    1412
    15 ```
    16 $userlist = implode( ',', wp_parse_id_list( $users ) );
    17 ```
     13`$userlist = implode( ',', wp_parse_id_list( $users ) );`
    1814
    1915I also added:
    2016
    21 ```
    22 $count = array_fill_keys( $userlist, 0 );
    23 ```
     17`$count = array_fill_keys( $userlist, 0 );`
    2418
    2519This change eliminates the need for an extra `foreach` loop.