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.

Pagination UX Fails

by Ian Dunn

Pagination is one of my biggest pet peeves, and Avoid the Pains of Pagination  does a good job of explaining the primary reason: Users have better experiences with scrolling than clicking. The mouse wheels, touchpads and touchscreens of today make scrolling faster and easier than clicking. To get to the next page in a pagination, the user has to find the link… [more]

Add this ribbon to your WordPress website re-abolish slavery