Make WordPress Core

Ticket #36695: 36695.2.diff

File 36695.2.diff, 889 bytes (added by jnylen0, 9 years ago)

Fix misreading of WP coding standards.

  • src/wp-includes/js/wp-util.js

     
    1414         *                       For example, "attachment" maps to "tmpl-attachment".
    1515         * @return {function}    A function that lazily-compiles the template requested.
    1616         */
    17         wp.template = _.memoize(function ( id ) {
     17        wp.template = _.memoize(function( id ) {
    1818                var compiled,
    1919                        /*
    2020                         * Underscore's default ERB-style templates are incompatible with PHP
     
    2929                                variable:    'data'
    3030                        };
    3131
    32                 return function ( data ) {
    33                         compiled = compiled || _.template( $( '#tmpl-' + id ).html(), null, options );
     32                return function( data ) {
     33                        compiled = compiled || _.template( $( '#tmpl-' + id ).html(), options );
    3434                        return compiled( data );
    3535                };
    3636        });