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