diff --git a/wp-tevko-responsive-images.php b/wp-tevko-responsive-images.php index b398c2d..d2e8d79 100644 --- a/wp-tevko-responsive-images.php +++ b/wp-tevko-responsive-images.php @@ -342,13 +342,12 @@ function _tevkori_filter_content_images_callback( $image ) { } if ( $id && false === $size ) { - preg_match( '/width="([0-9]+)"/', $atts, $width ); - preg_match( '/height="([0-9]+)"/', $atts, $height ); - - $size = array( - (int) $width[1], - (int) $height[1] - ); + if ( preg_match( '/ width="([0-9]+)"/', $atts, $width ) && preg_match( '/ height="([0-9]+)"/', $atts, $height ) ) { + $size = array( + (int) $width[1], + (int) $height[1] + ); + } } /*