Skip to content

Commit

Permalink
Merge three lines
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Sep 25, 2015
1 parent 2e2c15d commit ae2bcbf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions wp-tevko-responsive-images.php
Original file line number Diff line number Diff line change
Expand Up @@ -342,10 +342,7 @@ 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 );

if ( isset( $width[1] ) && isset( $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]
Expand Down

0 comments on commit ae2bcbf

Please sign in to comment.