1/* 2 * Restore the global $ alias. 3 * 4 * WordPress's jQuery ends with jQuery.noConflict(), which releases $. That is the right default for 5 * a plugin ecosystem, but these themes were written against a plain <script src="jquery.js"> that 6 * left $ defined, and they use it heavily: 188 places in Webbys-2020, 60 in Lovies2, 44 in Anthem, 7 * plus dozens of theme JS files that reference it at the top level without wrapping. 8 * 9 * Rewriting several hundred call sites to say jQuery() would be a large, risky change that buys 10 * nothing a visitor can see. Restoring the one global those files already expected is the smaller 11 * and more honest fix, and it is exactly the state the themes' own jQuery tag used to leave behind. 12 * 13 * Assigned only when nothing else holds $, so a page that does have another library keeps it. No 14 * competing library exists on any of these sites â checked for Prototype, MooTools, Zepto and Cash 15 * across every theme and every rendered page â but the guard costs nothing and states the 16 * condition under which this is safe. 17 * 18 * Depends on the jquery handle, so WordPress orders it immediately after jQuery itself. 19 * 20 * Build: 2026.08.28.06 21 */ 22( function ( window ) { 23 'use strict'; 24 25 if ( typeof window.jQuery === 'undefined' ) { 26 return; 27 } 28 29 if ( typeof window.$ === 'undefined' ) { 30 window.$ = window.jQuery; 31 } 32}( window ) );
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.