@@ -25,8 +25,8 @@ discard block |
||
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 |
||
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 |