Tested for WP 3.7.1 compatibility.