[2.5] Correct the 'unavailable template' call for variations so the message is displayed correctly, fixing a JS error.

This commit is contained in:
Justin Shreve 2016-02-17 07:50:38 -08:00
parent 42b9b55fb4
commit 328ad226e8
2 changed files with 2 additions and 2 deletions

View File

@ -198,7 +198,7 @@
var $template_html = '';
if ( ! variation.variation_is_visible ) {
$template_html = unavailable_template;
$template_html = unavailable_template();
// w3 total cache inline minification adds CDATA tags around our HTML (sigh)
$template_html = $template_html.replace( '/*<![CDATA[*/', '' );
$template_html = $template_html.replace( '/*]]>*/', '' );

File diff suppressed because one or more lines are too long