Ticket #8209: 8209.patch
File 8209.patch, 1.4 KB (added by , 5 years ago) |
---|
-
src/bp-activity/bp-activity-embeds.php
100 100 $activity = (array) $activities_template->activities; 101 101 $activity = reset( $activity ); 102 102 103 // No need to requery if we already got the embed activity 103 // No need to requery if we already got the embed activity. 104 104 if ( (int) $activity_id === $activity->id ) { 105 105 return $activities_template->has_activities(); 106 106 } … … 261 261 $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 ); 262 262 } 263 263 264 // Thumb width 264 // Thumb width. 265 265 $thumb_width = isset( $oembed->thumbnail_width ) && 'photo' !== $oembed->type && (int) $oembed->thumbnail_width < 550 ? (int) $oembed->thumbnail_width : $width; 266 266 267 267 $float_width = 350; … … 274 274 $caption .= sprintf( '<p class="caption-title"><strong>%s</strong></p>', apply_filters( 'single_post_title', $oembed->title ) ); 275 275 } 276 276 277 // Show description (non-oEmbed standard) 277 // Show description (non-oEmbed standard). 278 278 if ( isset( $oembed->description ) ) { 279 279 $caption .= sprintf( '<div class="caption-description">%s</div>', apply_filters( 'bp_activity_get_embed_excerpt', $oembed->description ) ); 280 280 }