fix for backwards compatibility with WP 3.8