Stripped out old WP < 3.6 code