Changeset 9456
- Timestamp:
- 02/09/2015 09:35:35 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-functions.php
r9384 r9456 2619 2619 preg_match( '/<img.*?(width\=[\'|"]{0,1}.*?[\'|"]{0,1})[\s|>]{1}/i', $matches[0][0], $width ); 2620 2620 2621 if ( !empty( $src ) ) { 2622 $src = substr( substr( str_replace( 'src=', '', $src[1] ), 0, -1 ), 1 ); 2623 $height = substr( substr( str_replace( 'height=', '', $height[1] ), 0, -1 ), 1 ); 2624 $width = substr( substr( str_replace( 'width=', '', $width[1] ), 0, -1 ), 1 ); 2621 if ( ! empty( $src ) ) { 2622 $src = substr( substr( str_replace( 'src=', '', $src[1] ), 0, -1 ), 1 ); 2623 2624 if ( isset( $width[1] ) ) { 2625 $width = substr( substr( str_replace( 'width=', '', $width[1] ), 0, -1 ), 1 ); 2626 } 2627 2628 if ( isset( $height[1] ) ) { 2629 $height = substr( substr( str_replace( 'height=', '', $height[1] ), 0, -1 ), 1 ); 2630 } 2625 2631 2626 2632 if ( empty( $width ) || empty( $height ) ) {
Note: See TracChangeset
for help on using the changeset viewer.