fix dynamic popup content preview on WP 3.9+