Utils: Update wp.template
to match parameter changes to _.template
in Underscore 1.8.3.
Removes passing a `null` value for the back-compat only `data` parameter to `_.template`. Props jnylen0. Fixes #36695. git-svn-id: https://develop.svn.wordpress.org/trunk@37851 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5640b2b02c
commit
eadd8d0948
@ -30,7 +30,7 @@ window.wp = window.wp || {};
|
||||
};
|
||||
|
||||
return function ( data ) {
|
||||
compiled = compiled || _.template( $( '#tmpl-' + id ).html(), null, options );
|
||||
compiled = compiled || _.template( $( '#tmpl-' + id ).html(), options );
|
||||
return compiled( data );
|
||||
};
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user