| @@ -75,8 +75,11 @@ | ||
| 75 | 75 | foreach ( $sizes as $size ) { |
| 76 | 76 | if ( 0 === strpos( $size, 'custom_' ) ) { |
| 77 | 77 | preg_match( '/custom_(\d*)x(\d*)/', $size, $matches ); |
| 78 | 78 | |
| 79 | + $matches[1] = (int) $matches[1]; | |
| 80 | + $matches[2] = (int) $matches[2]; | |
| 81 | + | |
| 79 | 82 | $instance = [ |
| 80 | 83 | 'image_size' => 'custom', |
| 81 | 84 | 'image_custom_dimension' => [ |
| 82 | 85 | 'width' => $matches[1], |