Changeset 61886
- Timestamp:
- 03/10/2026 12:43:50 PM (3 days ago)
- File:
-
- 1 edited
-
trunk/src/js/_enqueues/wp/util.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/wp/util.js
r54241 r61886 37 37 38 38 return function ( data ) { 39 if ( ! document.getElementById( 'tmpl-' + id ) ) { 39 var el = document.querySelector( 'script#tmpl-' + id ); 40 if ( ! el ) { 40 41 throw new Error( 'Template not found: ' + '#tmpl-' + id ); 41 42 } 42 compiled = compiled || _.template( $( '#tmpl-' + id ).html(),options );43 compiled = compiled || _.template( $( el ).html(), options ); 43 44 return compiled( data ); 44 45 };
Note: See TracChangeset
for help on using the changeset viewer.