I’ve created my custom smilies plugin by reworking standard WP filter functionality. Now I’ve gotten to the point where I’m able to use shortcuts (:C, :D, :H and :S for corresponding card symbols) in content I write. My main remaining issue is that I (and people commenting) have to put spaces if front of and after the smilie.
I think I need to edit this (standard) line of code:
$wp_smiliessearch = '/(\s|^)' . preg_quote( $smiley, '/' ) . '(\s|$)/';
But here I’m lost, I have no idea how to continue.
- The topic ‘Smilies_init’ is closed to new replies.