diff --git src/bp-activity/bp-activity-embeds.php src/bp-activity/bp-activity-embeds.php
index ae54f9d..696bba0 100644
|
|
EOD; |
307 | 307 | $css_class = isset( $oembed->provider_name ) ? sprintf( ' provider-%s', sanitize_html_class( strtolower( $oembed->provider_name ) ) ) : ''; |
308 | 308 | $caption = sprintf( '<div class="caption%1$s" style="width:%2$s">%3$s</div>', |
309 | 309 | $css_class, |
310 | | round( ( $width - (int) $thumb_width ) / $width * 100 ) . '%', |
| 310 | $thumb_width > $float_width ? 100 . '%' : round( ( $width - (int) $thumb_width ) / $width * 100 ) . '%', |
311 | 311 | $caption |
312 | 312 | ); |
313 | 313 | |