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-core/bp-core-functions.php

    r13304 r13312  
    34013401    }
    34023402
    3403     $db_types = wp_cache_get( $taxonomy, 'bp_object_terms' );
     3403    $db_types = (array) wp_cache_get( $taxonomy, 'bp_object_terms' );
    34043404
    34053405    if ( ! $db_types ) {
Note: See TracChangeset for help on using the changeset viewer.