ellatrix / new-smileys

The New WordPress.com Smileys
27 stars 4 forks source link

Plugin breaks smileys in bbPress #9

Closed douglsmith closed 9 years ago

douglsmith commented 9 years ago

I tried the plugin on a site running bbPress. Smileys were replaced as expected in normal WordPress posts, pages, and comments. But in bbPress posts it left a broken image.

Looking at the markup in a bbPress post without the plugin, smilies appear something like this: <img src="https://example.com/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley">

With the plugin active, in a bbPress post the beginning of the file name and the file extension is removed. Everything else stays the same: <img src="https://example.com/wp-includes/images/smilies/smile" alt=":)" class="wp-smiley">

In the rest of WordPress, the plugin replaces the smiley with the new markup: <span class="wp-smiley emoji emoji-smile" title=":)">:)</span>

ellatrix commented 9 years ago

See #11