Skip to:
Content

BuddyPress.org

Changeset 12732


Ignore:
Timestamp:
09/25/2020 01:59:35 AM (5 years ago)
Author:
imath
Message:

Admin: use implode() the right way into the BP site health panel

The right order of arguments of this function is $glue first and then $pieces, not the other way around as it was so far. Moreover as of PHP8 (Scheduled for Nov 26th), implode( $glue, $pieces ) only accepts args in that order, it no longer supports passing the $glue as the second arg.

Props dd32

See #8367 (trunk)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/admin/bp-core-admin-tools.php

    r12725 r12732  
    629629                'active_components' => array(
    630630                    'label' => __( 'Active components', 'buddypress' ),
    631                     'value' => implode( wp_list_pluck( $active_components, 'title' ), ', ' ),
     631                    'value' => implode( ', ', wp_list_pluck( $active_components, 'title' ) ),
    632632                ),
    633633                'template_pack' => array(
Note: See TracChangeset for help on using the changeset viewer.