Skip to:
Content

BuddyPress.org

Changeset 13241


Ignore:
Timestamp:
02/21/2022 08:43:09 PM (4 years ago)
Author:
imath
Message:

Avoid a TypeError when validating the activity URL to embed

Props dd32

See #8640 (trunk)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/classes/class-bp-activity-oembed-extension.php

    r10882 r13241  
    9292
    9393                // Check the URL to see if this is a single activity URL.
    94                 if ( 0 !== strpos( $url, $domain ) ) {
     94                if ( is_array( $url ) || 0 !== strpos( $url, $domain ) ) {
    9595                        return false;
    9696                }
Note: See TracChangeset for help on using the changeset viewer.