From eadd8d0948d1c5463305317eaf515892dc83ac3a Mon Sep 17 00:00:00 2001 From: Rachel Baker Date: Thu, 23 Jun 2016 02:29:15 +0000 Subject: [PATCH] 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 --- src/wp-includes/js/wp-util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/js/wp-util.js b/src/wp-includes/js/wp-util.js index 11a830f120..527441dda9 100644 --- a/src/wp-includes/js/wp-util.js +++ b/src/wp-includes/js/wp-util.js @@ -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 ); }; });