mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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 );
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user