Changeset 13414 for trunk/src/bp-core/classes/class-bp-media-extractor.php
- Timestamp:
- 02/10/2023 03:12:09 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/classes/class-bp-media-extractor.php
r12602 r13414 643 643 644 644 foreach ( $links['links'] as $link ) { 645 $path = untrailingslashit( parse_url( $link['url'], PHP_URL_PATH ));645 $path = parse_url( $link['url'], PHP_URL_PATH ); 646 646 647 647 // 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 ) { 649 649 continue; 650 650 }
Note: See TracChangeset
for help on using the changeset viewer.