Added backwards compatibility for Wordpress 3.8.