Skip to content

Commit c35020a

Browse files
Added class as array.
1 parent 3aeea43 commit c35020a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/Theme/ImageSizeFilter.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ public function __construct()
1212

1313
public function addVideoSizeClass($default_class, $post_type, $args)
1414
{
15-
if ($post_type == "mod-slider" && isset($args['id']) && $args['id'] != "slider-area") {
16-
$default_class .= " ratio-16-9";
15+
if ($post_type == "mod-slider" && isset($args['id']) && $args['id'] != "slider-area" && is_array($default_class)) {
16+
$default_class[] = "ratio-16-9";
1717
}
1818

1919
return $default_class;

0 commit comments

Comments
 (0)