If WordPress Uploads Fail on a Dreamhost Shared Plan

by Ian Dunn

TL;DR: DreamHost kills processes on their shared hosting plans if they run too long , which can screw up all kinds of things in non-obvious ways. To fix it, either disable lots of plugins, or upgrade to a better hosting plan. I spent too much time this week trying to track down this issue for a friend, so I thought I’d help surface this for anyone else that… [more]

Generating Dynamic Placeholders for $wpdb->prepare()

by Ian Dunn

$wpdb->prepare() is often called with each un-sanitized value explicitly passed as an individual argument; for example: $wpdb->prepare( “SELECT id FROM wp_posts WHERE id > %d AND `post_status` = %s”, $min_id, $status ) The function will also accept an array of un-sanitized values, though, like this: $wpdb->prepare( “SELECT id FROM wp_posts WHERE id > %d AND `post_status`… [more]

Building keyboard shortcuts into web applications

by Ian Dunn

Scott Hanselman’s post on adding hotkeys to web applications  is good food-for-thought if you have any power users, or just want a better experience when using the applications you develop.

Icons are Usually Poor UX

by Ian Dunn

UX Myths enumerates the reasons why the use of icons generally leads to poor user experience .

Logging WordPress REST API errors

by Ian Dunn

I wanted a simple logger for errors in REST API requests and didn’t find one online, so I wrote this one:  

wp_kses() Not as Slow As You Might Think

by Ian Dunn

Zach Tollman benchmarked wp_kses() and found that the conventional wisdom about its performance isn’t always true .

Open Source World

by Ian Dunn

TED Radio Hour has a great episode about the pre-technology roots of the ideas behind today’s Open Source movement, and how they’re being applied beyond the digital realm, to things like architecture, deep-sea rovers, and even democracy itself.