changeset 21 | 48c4eec2b7e6 |
parent 18 | be944660c56a |
--- a/wp/wp-includes/js/wp-util.js Thu Sep 29 08:06:27 2022 +0200 +++ b/wp/wp-includes/js/wp-util.js Fri Sep 05 18:40:08 2025 +0200 @@ -36,6 +36,9 @@ }; return function ( data ) { + if ( ! document.getElementById( 'tmpl-' + id ) ) { + throw new Error( 'Template not found: ' + '#tmpl-' + id ); + } compiled = compiled || _.template( $( '#tmpl-' + id ).html(), options ); return compiled( data ); };