[wp-trac] [WordPress Trac] #52365: includes/js/underscore.js missing var keyword on line 157
WordPress Trac
noreply at wordpress.org
Mon Jan 25 19:02:03 UTC 2021
#52365: includes/js/underscore.js missing var keyword on line 157
--------------------------+-----------------------------
Reporter: Venutius | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 5.6
Severity: normal | Keywords: has-patch
Focuses: |
--------------------------+-----------------------------
Hi there, this is my first bug, not exactly why my plugin chose to throw
the error but I was getting "TypeError: i is undefined" error on a page
from the underscore.js file and I was able to fix it by replacing line 157
with the following:
{{{
for ( var i = 0, length = keys.length; i < length; i++) {
iteratee(obj[keys[i]], keys[i], obj);
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52365>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list