Skip to:
Content

BuddyPress.org

Ticket #8209: 8209.patch

File 8209.patch, 1.4 KB (added by passoniate, 5 years ago)

Patch

  • src/bp-activity/bp-activity-embeds.php

     
    100100                $activity = (array) $activities_template->activities;
    101101                $activity = reset( $activity );
    102102
    103                 // No need to requery if we already got the embed activity
     103                // No need to requery if we already got the embed activity.
    104104                if ( (int) $activity_id === $activity->id ) {
    105105                        return $activities_template->has_activities();
    106106                }
     
    261261                                $play_icon = sprintf( '<a rel="nofollow" class="play-btn" href="%1$s" onclick="top.location.href=\'%1$s\'">%2$s</a>', esc_url( $url ), $play_icon );
    262262                        }
    263263
    264                         // Thumb width
     264                        // Thumb width.
    265265                        $thumb_width = isset( $oembed->thumbnail_width ) && 'photo' !== $oembed->type && (int) $oembed->thumbnail_width < 550 ? (int) $oembed->thumbnail_width : $width;
    266266
    267267                        $float_width = 350;
     
    274274                                $caption .= sprintf( '<p class="caption-title"><strong>%s</strong></p>', apply_filters( 'single_post_title', $oembed->title ) );
    275275                        }
    276276
    277                         // Show description (non-oEmbed standard)
     277                        // Show description (non-oEmbed standard).
    278278                        if ( isset( $oembed->description ) ) {
    279279                                $caption .= sprintf( '<div class="caption-description">%s</div>', apply_filters( 'bp_activity_get_embed_excerpt', $oembed->description ) );
    280280                        }