Somewhere around version 2.8.4 or something, WordPress introduced a "feature" to focus the username form and wipe the username. I dont want to type my username every time again and again and again. So what can we do to kill wp_attempt_focus? There is no hook available to disable that part… Read more
Archive for the ‘PHP’ Category
2010
Speed up your website: Preloading and caching images
For a customer, I'm building a website that has a pretty large header jpeg that is different for every single page. To speed up loading several pages, I've taken several steps:
1. Force browser caching
You can tell a browser to keep certain files in cache longer than normal. In… Read more
2010
WordPress timezone problems: fixed
I'm using WordPress as a framework for a website that reaches over 30.000 readers daily over several media. Some over the web, but most users receive posts by mail, sms or twitter using custom-made plugins. Since I can't have a broken mail sent to thousands of users, I rather don't… Read more
2010
WordPress: Pass variables by reference with apply_filter
WordPress has this great filtering system which allows you to write plugins. Yesterday, I was writing a plugin that has the ability for other plugins to change it's behaviour.
For the particular functionality, it would be very nice to use two parameters, which should both be changable.
Standard PHP
In… Read more
2010
WordPress spam filtering: improved.
On this WordPress blog, I'm running the WP Hashcash plugin to prevent spam. Recently, I've seen a lot more spam, I guess spambots now recognise WPHC encryption.
WPHC encryption could be upgraded to withstand spam again. But new bots will break new encryption. The biggest problem is that… Read more
2010
Magento and safe mode
The e-commerce application magento, for some reason, expects to have a lot of permissions on every server. One thing I stumbled upon when trying to install magento, was the creation of /tmp/magento/var.
Since /tmp could be shared between all users, this may not be the safest way. That's why my… Read more
