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 »

Jun 122009
 

While I was trying to upgrade a friend’s Fedora machine from 10 to 11, I found that the yum got some problems with mirrorlist file, which had been addressed with Fedora/yum guys, but so there there is no fix, just a workaround.

Then yesterday WordPress prompted there is a new version can be upgraded to, so I did … everything went smoothly, automatic upgrade, so fancy, but after upgrade – hold on, all my posts became PHP error message.

Obviously the new 2.8 does not support old smiley well, or at least it changed requirement of the smileys’ pattern. I haven’t found the root cause yet so I don’t know what’s the workaround so far, so I just simply disabled smiley and seems it works fine to me, so far.

I will post here later if I found anything.