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:
Rachel Baker 2016-06-23 02:29:15 +00:00
parent 5640b2b02c
commit eadd8d0948
1 changed files with 1 additions and 1 deletions

View File

@ -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 );
};
});