Merge pull request #10368 from justinshreve/variation-js-error-10367
[2.5] Correct the 'unavailable template' call for variations
This commit is contained in:
commit
013b861535
|
@ -198,7 +198,7 @@
|
||||||
var $template_html = '';
|
var $template_html = '';
|
||||||
|
|
||||||
if ( ! variation.variation_is_visible ) {
|
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)
|
// w3 total cache inline minification adds CDATA tags around our HTML (sigh)
|
||||||
$template_html = $template_html.replace( '/*<![CDATA[*/', '' );
|
$template_html = $template_html.replace( '/*<![CDATA[*/', '' );
|
||||||
$template_html = $template_html.replace( '/*]]>*/', '' );
|
$template_html = $template_html.replace( '/*]]>*/', '' );
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue