We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2ec505 commit f0fbf0aCopy full SHA for f0fbf0a
inc/Services/Svg.php
@@ -38,6 +38,10 @@ public function get_service_name(): string {
38
* @return string
39
*/
40
public function get_the_icon( string $icon_class, array $additionnal_classes = [] ): string {
41
+ if ( empty( $icon_class ) ) {
42
+ return '';
43
+ }
44
+
45
$icon_slug = strpos( $icon_class, 'icon-' ) === 0 ? $icon_class : sprintf( 'icon-%s', $icon_class );
46
$classes = [ 'icon', $icon_slug ];
47
$classes = array_merge( $classes, $additionnal_classes );
0 commit comments