Ticket #36631: 36631.2.diff
File 36631.2.diff, 499 bytes (added by , 3 years ago) |
---|
-
src/js/_enqueues/wp/util.js
diff --git a/src/js/_enqueues/wp/util.js b/src/js/_enqueues/wp/util.js index 7aedbbb584..c603bc69f4 100644
a b window.wp = window.wp || {}; 36 36 }; 37 37 38 38 return function ( data ) { 39 if ( ! document.getElementById( 'tmpl-' + id ) ) { 40 throw new Error( 'Template not found: ' + '#tmpl-' + id ); 41 } 39 42 compiled = compiled || _.template( $( '#tmpl-' + id ).html(), options ); 40 43 return compiled( data ); 41 44 };