works with WP 3.9, tested with PHP 5.5.11 (Gentoo) and 5.5.3 (Ubuntu)