fix for 'Uncaught ReferenceError: wp is not defined'