[wp-trac] [WordPress Trac] #38052: wp-utility.js misses function argument null
WordPress Trac
noreply at wordpress.org
Wed Sep 14 09:26:31 UTC 2016
#38052: wp-utility.js misses function argument null
--------------------------+-----------------------------
Reporter: wiardvanrij | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.6
Severity: normal | Keywords:
Focuses: javascript |
--------------------------+-----------------------------
Since 4.6 the wp-utility is updated. The null parameter has been removed
here:
{{{
compiled = compiled || _.template( $( '#tmpl-' + id ).html(), null,
options );
}}}
to
{{{
compiled = compiled || _.template( $( '#tmpl-' + id ).html(), options );
}}}
Which can give the following error:
{{{
wp-util.min.js:1 Uncaught TypeError: (intermediate value)(intermediate
value) is not a function
}}}
This is fixed by adding that null value again like this:
{{{
compiled = compiled || _.template( $( '#tmpl-' + id ).html(), null,
options );
}}}
Affects version 4.6 and 4.6.1
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38052>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list