[2.5] Correct the 'unavailable template' call for variations so the message is displayed correctly, fixing a JS error.
This commit is contained in:
parent
42b9b55fb4
commit
328ad226e8
|
@ -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
Loading…
Reference in New Issue