If you’re switching the URL on your site, like going from dev.site.com to www.site.com, it’s not enough just to search/replace the url. Continue reading →
Store options as a serialized array
If you’re putting options into the wp_options table, don’t store every one in it’s own row. Continue reading →
WPML translations are always always always strings
If your comparisons match variable type ( === ), this can cause compatibility issues with WPML. Continue reading →
Don’t count on that hentry class for your rich snippets
If you’re using Schema.org markup on a piece of content you may want to wrap it in a “hentry” CSS class, even though it should be included in post_class(). Continue reading →
Play nice when sorting via pre_get_posts
Try not to override other requests that might be hooking in if you don’t absolutely have to. Continue reading →
Dear god, please do not fuck with PHP’s default timezone
WordPress will get seriously pissed off at you. Use current_time() and WordPress’s timezone setting instead.
Continue reading →
Applying the_content filter inside the_content filter causes lots of tears
That was my actual commit message. Continue reading →
Use your plugin or theme slug as the textdomain, not whatever other stupid idea you might have
This one seems obvious in hindsight. Why on earth did I not use the plugin slug as the textdomain? Continue reading →
get_current_screen()
get_current_screen() will return null if it’s called during an ajax request. Continue reading →
Hello world!
Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!