- This topic has 3 replies, 2 voices, and was last updated 2 months, 3 weeks ago by .
I'm using an icon with a certain foreground color in a custom MB Block. This, however, gives the following PHP Warning in my error log:
PHP Warning: strpos() expects parameter 1 to be string, array given in ***/plugins/meta-box-aio/vendor/meta-box/mb-blocks/src/MetaBox.php on line 149
This is the code I use to get the icon right:
'icon' => [ 'src' => ' fas fa-car', 'foreground' => '#4ab098', ],
And this works, but the piece of code that searches for the fontawesome tag assumes the value of 'icon' is always a string when in fact it can also be an array.
Can this be fixed?
- You must be logged in to reply to this topic.