Opened 9 years ago
Closed 9 years ago
#36695 closed enhancement (fixed)
wp-util: update to latest _.template syntax
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.6 | Priority: | normal |
Severity: | normal | Version: | 4.6 |
Component: | General | Keywords: | has-patch |
Focuses: | javascript | Cc: |
Description
With the upgrade to Underscore 1.8.3 in [36546] and 4.5, the preferred syntax for passing options to _.template
is to pass two parameters (template, options
) rather than three (template, data, options
). This patch updates the wp.template
function accordingly (and also cleans up the style of the immediately surrounding code).
No functional changes, since Underscore supports passing data = null
for backwards compatibility, but we should fix this to be consistent with the correct usage of the function.
Attachments (2)
Change History (6)
Note: See
TracTickets for help on using
tickets.
Fix misreading of WP coding standards.