Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/10/2023 03:12:09 AM (3 years ago)
Author:
imath
Message:

Improve PHP 8.2 compatibility

  • Add the #[AllowDynamicProperties] attribute to classes when we add dynamic properties to these into our codebase.
  • Add PHP 8.2 to our PHPUnit testing matrix

Closes https://github.com/buddypress/buddypress/pull/62
Fixes #8820

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/classes/class-bp-media-extractor.php

    r12602 r13414  
    643643
    644644            foreach ( $links['links'] as $link ) {
    645                 $path = untrailingslashit( parse_url( $link['url'], PHP_URL_PATH ) );
     645                $path = parse_url( $link['url'], PHP_URL_PATH );
    646646
    647647                // Check this URL's file extension matches that of an accepted audio format.
    648                 if ( ! $path || substr( $path, -4 ) !== $extension ) {
     648                if ( ! $path || substr( untrailingslashit( $path ), -4 ) !== $extension ) {
    649649                    continue;
    650650                }
Note: See TracChangeset for help on using the changeset viewer.