- Timestamp:
- 11/07/2018 04:09:00 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/classes/class-bp-core-oembed-extension.php
r11447 r12281 425 425 // Add markers to tell that we're embedding a single activity. 426 426 // This is needed for various oEmbed response data filtering. 427 if ( empty( buddypress()->{$this->slug_endpoint} )) {427 if ( ! isset( buddypress()->{$this->slug_endpoint} ) || ! buddypress()->{$this->slug_endpoint} ) { 428 428 buddypress()->{$this->slug_endpoint} = new stdClass; 429 429 } … … 534 534 535 535 // Add custom route args to iframe. 536 if ( ! empty( buddypress()->{$this->slug_endpoint}->embedargs_in_progress )) {536 if ( isset( buddypress()->{$this->slug_endpoint}->embedargs_in_progress ) && buddypress()->{$this->slug_endpoint}->embedargs_in_progress ) { 537 537 foreach( buddypress()->{$this->slug_endpoint}->embedargs_in_progress as $key => $value ) { 538 538 $url = add_query_arg( $key, $value, $url );
Note: See TracChangeset
for help on using the changeset viewer.