Blob Blame History Raw
Description: Remove references to jshint
 The file jshint.js uses a non-free license. It is removed as part of the upstream
 tarball rebuild but this patch removes the things that reference it. Luckily the
 script handler does a NOP for a non-existent script
Author: Craig Small <csmall@debian.org>
Origin: Debian
Bug: https://core.trac.wordpress.org/ticket/42850
Reviewed-by: Craig Small <csmall@debian.org>
Last-Update: 2017-12-09
--- a/wp-includes/script-loader.php
+++ b/wp-includes/script-loader.php
@@ -461,7 +461,6 @@
 
 	$scripts->add( 'wp-codemirror', '/wp-includes/js/codemirror/codemirror.min.js', array(), '5.29.1-alpha-ee20357' );
 	$scripts->add( 'csslint', '/wp-includes/js/codemirror/csslint.js', array(), '1.0.5' );
-	$scripts->add( 'jshint', '/wp-includes/js/codemirror/jshint.js', array(), '2.9.5.999' );
 	$scripts->add( 'jsonlint', '/wp-includes/js/codemirror/jsonlint.js', array(), '1.6.2' );
 	$scripts->add( 'htmlhint', '/wp-includes/js/codemirror/htmlhint.js', array(), '0.9.14-xwp' );
 	$scripts->add( 'htmlhint-kses', '/wp-includes/js/codemirror/htmlhint-kses.js', array( 'htmlhint' ) );