Invalid inline script | WordPress.org

[ad_1]

Hello,
After cloning or creating a new page/post I am getting a validation error: invalid inline script. The script contains the following code and the source is wp-includes.

( function() {
		var query = document.location.search;

		if ( query && query.indexOf( __SINGLE_QUOTED_STRING__ ) !== __INT__ ) {
			window.name = __SINGLE_QUOTED_STRING__;
		}

		if ( window.addEventListener ) {
			window.addEventListener( __SINGLE_QUOTED_STRING__, function() { window.name = __SINGLE_QUOTED_STRING__; }, false );
		}
	}());

I can get rid of that error by reinstalling the AMP plugin, but doing it every time is a little annoying.

  • This topic was modified 3 hours, 11 minutes ago by egornmore.

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer