Ticket #36631: 36631.diff
| File 36631.diff, 506 bytes (added by , 10 years ago) |
|---|
-
src/wp-includes/js/wp-util.js
diff --git a/src/wp-includes/js/wp-util.js b/src/wp-includes/js/wp-util.js index 84cb551..a703a85 100644
a b window.wp = window.wp || {}; 30 30 }; 31 31 32 32 return function ( data ) { 33 if ( ! document.getElementById( 'tmpl-' + id ) ) { 34 throw new Error( 'Template not found: ' + '#tmpl-' + id ); 35 } 33 36 compiled = compiled || _.template( $( '#tmpl-' + id ).html(), null, options ); 34 37 return compiled( data ); 35 38 };