Changeset 8716
- Timestamp:
- 07/29/2014 01:57:09 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-activity/bp-activity-functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-functions.php
r8711 r8716 1734 1734 1735 1735 // Get the SRC value 1736 preg_match( '/<img.*?(src\=[\'|"]{0,1}.*?[\'|"]{0,1})[\s|>]{1}/i', $matches[0][0], $src);1736 preg_match( '/<img.*?(src\=[\'|"]{0,1}.*?[\'|"]{0,1})[\s|>]{1}/i', $matches[0][0], $src ); 1737 1737 1738 1738 // Get the width and height … … 1741 1741 1742 1742 if ( !empty( $src ) ) { 1743 $src = substr( substr( str_replace( 'src=', '', $src[1]), 0, -1 ), 1 );1743 $src = substr( substr( str_replace( 'src=', '', $src[1] ), 0, -1 ), 1 ); 1744 1744 $height = substr( substr( str_replace( 'height=', '', $height[1] ), 0, -1 ), 1 ); 1745 $width = substr( substr( str_replace( 'width=', '', $width[1]), 0, -1 ), 1 );1745 $width = substr( substr( str_replace( 'width=', '', $width[1] ), 0, -1 ), 1 ); 1746 1746 1747 1747 if ( empty( $width ) || empty( $height ) ) {
Note: See TracChangeset
for help on using the changeset viewer.