compatibility with WP 3.6