Skip to content

Commit ae2bcbf

Browse files
committed
Merge three lines
1 parent 2e2c15d commit ae2bcbf

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

wp-tevko-responsive-images.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -342,10 +342,7 @@ function _tevkori_filter_content_images_callback( $image ) {
342342
}
343343

344344
if ( $id && false === $size ) {
345-
preg_match( '/ width="([0-9]+)"/', $atts, $width );
346-
preg_match( '/ height="([0-9]+)"/', $atts, $height );
347-
348-
if ( isset( $width[1] ) && isset( $height[1] ) ) {
345+
if ( preg_match( '/ width="([0-9]+)"/', $atts, $width ) && preg_match( '/ height="([0-9]+)"/', $atts, $height ) ) {
349346
$size = array(
350347
(int) $width[1],
351348
(int) $height[1]

0 commit comments

Comments
 (0)