WordPress.org

Make WordPress Core

Changeset 37851


Ignore:
Timestamp:
06/23/2016 02:29:15 AM (4 years ago)
Author:
rachelbaker
Message:

Utils: Update wp.template to match parameter changes to _.template in Underscore 1.8.3.

Removes passing a null value for the back-compat only data parameter to _.template.

Props jnylen0.
Fixes #36695.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/wp-util.js

    r37714 r37851  
    3131
    3232        return function ( data ) {
    33             compiled = compiled || _.template( $( '#tmpl-' + id ).html(), null, options );
     33            compiled = compiled || _.template( $( '#tmpl-' + id ).html(), options );
    3434            return compiled( data );
    3535        };
Note: See TracChangeset for help on using the changeset viewer.