Reset after showing shortcode. Closes #2475.
This commit is contained in:
parent
5f304f0534
commit
e0ef659cb9
|
@ -546,6 +546,8 @@ class WC_Shortcodes {
|
|||
|
||||
</p><?php
|
||||
|
||||
wp_reset_postdata();
|
||||
|
||||
return ob_get_clean();
|
||||
|
||||
} elseif ( 'product_variation' == $product_data->post_type ) {
|
||||
|
@ -580,6 +582,8 @@ class WC_Shortcodes {
|
|||
|
||||
</p><?php
|
||||
|
||||
wp_reset_postdata();
|
||||
|
||||
return ob_get_clean();
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue