Changeset 61897
- Timestamp:
- 03/10/2026 02:02:05 PM (4 weeks ago)
- Location:
- branches/6.9
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/js/_enqueues/wp/util.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/6.9
-
branches/6.9/src/js/_enqueues/wp/util.js
r54241 r61897 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.