Jun 192009
 

Testing smilies.

I think I got it fixed – the problem is that “/” is used as delimiter of regular expression, and if “/” is part of a smiley’s pattern, the whole thing is broken.

So I’m defining a delimiter variable in wp-includes/functions.php, in function smilies_init(), and use a character that can never be used (well, sort of) – I’m using “\001” for now. Then replace all occurrences of “/” with $delimiter while composing $wp_smiliessearch, and that’s it.

Only open issue, which I don’t think it is related, is that two continuous #:-s will have only one shows up, still debugging … Continue reading »