Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/01/2016 09:29:36 PM (9 years ago)
Author:
r-a-y
Message:

Embeds: Do not use exceptions.

Until we are ready to use exceptions across the BuddyPress codebase, we
shouldn't use it here. Instead, just return.

See #7104.

File:
1 edited

Legend:

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

    r10849 r10861  
    4040        // Some rudimentary logic checking.
    4141        if ( empty( $this->slug_endpoint ) ) {
    42             $class = get_class( $this );
    43             throw new LogicException( $class . ' class must define $slug_endpoint property' );
     42            return;
    4443        }
    4544
Note: See TracChangeset for help on using the changeset viewer.