WordPress.org

Make WordPress Core

Changeset 44762 for trunk


Ignore:
Timestamp:
02/21/2019 09:18:49 PM (3 months ago)
Author:
jorbin
Message:

Script Loader: Load fakejshint as jshint due to "good and evil".

Originally fixed in [42547]. Broken in [44163]. We've been here before. I recognize that tree.

Fixes #46299

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r44729 r44762  
    12571257    $scripts->add( 'wp-codemirror', '/wp-includes/js/codemirror/codemirror.min.js', array(), '5.29.1-alpha-ee20357' );
    12581258    $scripts->add( 'csslint', '/wp-includes/js/codemirror/csslint.js', array(), '1.0.5' );
    1259     $scripts->add( 'jshint', '/wp-includes/js/codemirror/jshint.js', array(), '2.9.5.999' );
     1259    $scripts->add( 'esprima', '/wp-includes/js/codemirror/esprima.js', array(), '4.0.0' );
     1260    $scripts->add( 'jshint', '/wp-includes/js/codemirror/fakejshint.js', array( 'esprima' ), '2.9.5' );
    12601261    $scripts->add( 'jsonlint', '/wp-includes/js/codemirror/jsonlint.js', array(), '1.6.2' );
    12611262    $scripts->add( 'htmlhint', '/wp-includes/js/codemirror/htmlhint.js', array(), '0.9.14-xwp' );
Note: See TracChangeset for help on using the changeset viewer.