TopShelfCraft / Wordsmith

A plugin for Craft CMS to help you manage and manipulate text.
Other
30 stars 20 forks source link

Undefined constant TopShelfCraft\Wordsmith\libs\Emoji::KEYCAP #56

Closed BenParizek closed 11 months ago

BenParizek commented 11 months ago

After upgrading to Craft 4, the emojify filter seems to be triggering an error on our site.

CleanShot 2023-11-20 at 10 31 18@2x

The error gets triggered when a field has a blank value and when the emojiTextField is set to a string like :broken_heart:.

{{ element.emojiTextField|emojify }}

I've also tried hard coding the string into the template, and get the same error:

{{ ':broken_heart:'|emojify }}