Completed
Pull Request — trunk (#848)
by
unknown
04:35
created
includes/types/CMB2_Type_File_List.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@  discard block
 block discarded – undo
25 25
 		$output      = '';
26 26
 
27 27
 		if ( is_array( $img_size ) ) {
28
-			$size_width  = $img_size[0];
29
-			$size_height = $img_size[1];
28
+			$size_width  = $img_size[ 0 ];
29
+			$size_height = $img_size[ 1 ];
30 30
 
31 31
 			// Try and get the closest named size from our array of dimensions
32 32
 			if ( $named_size = CMB2_Utils::get_named_size( $img_size ) ) {
@@ -47,8 +47,8 @@  discard block
 block discarded – undo
47 47
 			}
48 48
 
49 49
 			// Get image dimensions from named sizes
50
-			$size_width  = $image_sizes[ $img_size ]['width'];
51
-			$size_height = $image_sizes[ $img_size ]['height'];
50
+			$size_width  = $image_sizes[ $img_size ][ 'width' ];
51
+			$size_height = $image_sizes[ $img_size ][ 'height' ];
52 52
 			$size_name   = $img_size;
53 53
 		}
54 54
 
Please login to merge, or discard this patch.