Changeset 7349 for trunk/bp-activity/bp-activity-functions.php
- Timestamp:
- 08/12/2013 10:53:30 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-functions.php
r7338 r7349 1525 1525 * 1526 1526 * @param string $content The content to work with 1527 * @param string $link Optional. The URL that the image should link to1527 * @param string $link Optional. The unescaped URL that the image should link to 1528 1528 * @param array $activity_args Optional. The args passed to the activity 1529 1529 * creation function (eg bp_blogs_record_activity()) … … 1562 1562 $new_height = (int) $height >= 100 ? 100 : $height; 1563 1563 $new_width = $new_height * $ratio; 1564 1565 $image = '<img src="' . esc_attr( $src ) . '" width="' . $new_width . '" height="' . $new_height . '" alt="' . __( 'Thumbnail', 'buddypress' ) . '" class="align-left thumbnail" />'; 1564 $image = '<img src="' . esc_url( $src ) . '" width="' . absint( $new_width ) . '" height="' . absint( $new_height ) . '" alt="' . __( 'Thumbnail', 'buddypress' ) . '" class="align-left thumbnail" />'; 1566 1565 1567 1566 if ( !empty( $link ) ) { 1568 $image = '<a href="' . $link. '">' . $image . '</a>';1567 $image = '<a href="' . esc_url( $link ) . '">' . $image . '</a>'; 1569 1568 } 1570 1569
Note: See TracChangeset
for help on using the changeset viewer.