Skip to:
Content

BuddyPress.org

Changeset 12787


Ignore:
Timestamp:
11/14/2020 02:27:47 PM (4 years ago)
Author:
imath
Message:

Groups: Avoid a PHP 8.0 deprecated notice about optional function arg.

The BP_Groups_List_Table->column_content_group_type method was wrongly using one optional arguments before two required ones. As PHP 8.0 no longer accepts this practice, all arguments of the method will be optional.

See #8393 (branch 6.0)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/6.0/src/bp-groups/classes/class-bp-groups-list-table.php

    r12551 r12787  
    790790     * @return string
    791791     */
    792     public function column_content_group_type( $retval = '', $column_name, $item ) {
     792    public function column_content_group_type( $retval = '', $column_name = '', $item = array() ) {
    793793        if ( 'bp_group_type' !== $column_name ) {
    794794            return $retval;
Note: See TracChangeset for help on using the changeset viewer.