Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/13/2022 08:21:06 AM (2 years ago)
Author:
imath
Message:

Avoid various PHP 8.1 deprecated notices

Here are the treated deprecated notices:

  • ctype_digit() Argument of type int will be interpreted as string in the future.
  • Automatic conversion of false to array.
  • Passing null to strtotime() $datetime parameter.

Props renatonascalves, rafiahmedd

See #8649

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/includes/functions.php

    r13170 r13312  
    245245     * from the component ID.
    246246     */
    247     $current_component_id = bp_core_get_active_components( array( 'slug' => bp_current_component() ) );
     247    $current_component_id = bp_core_get_active_components( array( 'id' => bp_current_component() ) );
    248248    if ( $current_component_id && 1 === count( $current_component_id ) ) {
    249249        $current_component_id = reset( $current_component_id );
Note: See TracChangeset for help on using the changeset viewer.