Working on client support system, run into issue where Codeigniter changed all quotes to escaped HTML element. That is good for security, but still, there is space for different solution: View the code on Gist.
Codeigniter and file permissions on upload (CHMOD)
Working on server where, as user, I can’t delete uploaded files by server (Codeigniter Application) I need to change code and apply correct file permission (CHMOD). Here is one way how to do this.
Better browser detection with language_attributes() filter in WordPress
In last years I have seen a lot variation to detect and apply browser specific HEAD attributes. Instead to add multi-line code block, I created small filter, targeting only IE browsers and their versions. This function can be easy extend.
Do Not Track HTTP Header with PHP
Working with privacy on one of my latest projects, I implemented Do Not Track (DNT) feature, based on HTTP Header information (HTTP_DNT) View the code on Gist. And yes, it’s still experimental feature, not wide supported. More information from Wikipedia
Add itemprop=”image” to all WordPress images
Working with Schema.org documantation, found that (almost?) all images use same attribute itemprop=”image”, so why not add it to all WordPress images.
Better page title with and without Yoast WordPress SEO plugin
Look like Yoast‘s comments are breaking code, so I’ll put it here. If You are using (and You should!) Yoast’s WordPress SEO plugin, it’s good to backup Your WordPress theme with fall-back solution, if some day client will deactivate WordPress SEO plugin. My solution: (original) Adopted: View the code on Gist.
