public static function get_dimensions_for_srcset_size( $resize, $srcset_size ) {
		// Get width and height for the additional src
		if ( is_array( $srcset_size ) ) {
			$width  = $srcset_size[0];
			$height = isset( $srcset_size[1] ) ? $srcset_size[1] : 0;
		} else {
			$width  = (int) round( $resize[0] * $srcset_size );
			$height = isset( $resize[1] ) ? (int) round( $resize[1] * $srcset_size ) : 0;
		}

		return array( $width, $height );
	}
public static function get_dimensions_for_srcset_size( $resize, $srcset_size ) {
		// Get width and height for the additional src
		if ( is_array( $srcset_size ) ) {
			$width  = $srcset_size[0];
			$height = isset( $srcset_size[1] ) ? $srcset_size[1] : 0;
		} else {
			$width  = (int) round( $resize[0] * $srcset_size );
			$height = isset( $resize[1] ) ? (int) round( $resize[1] * $srcset_size ) : 0;
		}

		return array( $width, $height );
	}
public static function get_dimensions_for_srcset_size ( $ resize , $ srcset_size ) { // Get width and height for the additional src if ( is_array ( $ srcset_size ) ) { $ width = $ srcset_size [ 0 ] ; $ height = isset ( $ srcset_size [ 1 ] ) ? $ srcset_size [ 1 ] : 0 ; } else { $ width = ( int ) round ( $ resize [ 0 ] * $ srcset_size ) ; $ height = isset ( $ resize [ 1 ] ) ? ( int ) round ( $ resize [ 1 ] * $ srcset_size ) : 0 ; } return array ( $ width , $ height ) ; }
Get width and height for a srcset size.

@param array     $resize      Resize configuration array.
@param array|int $srcset_size Srcset definition.

@return array Width and height.
Get width and height for a srcset size .