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]
$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]
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.
I wanted a simple logger for errors in REST API requests and didn’t find one online, so I wrote this one:
Zach Tollman benchmarked wp_kses() and found that the conventional wisdom about its performance isn’t always true .